summaryrefslogtreecommitdiffabout
path: root/kabc/addresseedialog.cpp
authorMichael Krelin <hacker@klever.net>2007-07-04 11:23:42 (UTC)
committer Michael Krelin <hacker@klever.net>2007-07-04 11:23:42 (UTC)
commita08aff328d4393031d5ba7d622c2b05705a89d73 (patch) (side-by-side diff)
tree8ee90d686081c52e7c69b5ce946e9b1a7d690001 /kabc/addresseedialog.cpp
parent11edc920afe4f274c0964436633aa632c8288a40 (diff)
downloadkdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.zip
kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.gz
kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.bz2
initial public commit of qt4 portp1
Diffstat (limited to 'kabc/addresseedialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--kabc/addresseedialog.cpp51
1 files changed, 27 insertions, 24 deletions
diff --git a/kabc/addresseedialog.cpp b/kabc/addresseedialog.cpp
index 671787e..bda1b9e 100644
--- a/kabc/addresseedialog.cpp
+++ b/kabc/addresseedialog.cpp
@@ -22,7 +22,10 @@
#include <qpushbutton.h>
-#include <qgroupbox.h>
+#include <q3groupbox.h>
#include <qapplication.h>
#include <qregexp.h>
-#include <qvbox.h>
+#include <q3vbox.h>
#include <qlabel.h>
+//Added by qt3to4:
+#include <Q3ValueList>
+#include <Q3VBoxLayout>
@@ -40,4 +43,4 @@ using namespace KABC;
-AddresseeItem::AddresseeItem( QListView *parent, const Addressee &addressee ) :
- QListViewItem( parent ),
+AddresseeItem::AddresseeItem( Q3ListView *parent, const Addressee &addressee ) :
+ Q3ListViewItem( parent ),
mAddressee( addressee )
@@ -73,3 +76,3 @@ AddresseeDialog::AddresseeDialog( QWidget *parent, bool multiple ) :
- QVBoxLayout *listLayout = new QVBoxLayout (listWidget) ;
+ Q3VBoxLayout *listLayout = new Q3VBoxLayout (listWidget) ;
//topLayout->addLayout( listLayout );
@@ -83,6 +86,6 @@ AddresseeDialog::AddresseeDialog( QWidget *parent, bool multiple ) :
listLayout->addWidget( mAddresseeList );
- connect( mAddresseeList, SIGNAL( doubleClicked( QListViewItem * ) ),
+ connect( mAddresseeList, SIGNAL( doubleClicked( Q3ListViewItem * ) ),
SLOT( slotOk() ) );
//QHBox* searchBox = new QHBox ( listWidget );
- QHBox * hb = new QHBox ( listWidget );
+ Q3HBox * hb = new Q3HBox ( listWidget );
listLayout->addWidget ( hb );
@@ -103,5 +106,5 @@ AddresseeDialog::AddresseeDialog( QWidget *parent, bool multiple ) :
// SLOT( removeSelected() ) );
- connect( mSelectedList, SIGNAL( clicked( QListViewItem * ) ),
+ connect( mSelectedList, SIGNAL( clicked( Q3ListViewItem * ) ),
SLOT( removeSelected() ) );
- connect( mSelectedList, SIGNAL( returnPressed( QListViewItem *) ),
+ connect( mSelectedList, SIGNAL( returnPressed( Q3ListViewItem *) ),
SLOT( removeSelected() ) );
@@ -113,6 +116,6 @@ AddresseeDialog::AddresseeDialog( QWidget *parent, bool multiple ) :
#endif
- connect( mAddresseeList, SIGNAL( clicked( QListViewItem * ) ),
- SLOT( addSelected( QListViewItem * ) ) );
- connect( mAddresseeList, SIGNAL( returnPressed( QListViewItem * ) ),
- SLOT( selectNextItem( QListViewItem * ) ) );
+ connect( mAddresseeList, SIGNAL( clicked( Q3ListViewItem * ) ),
+ SLOT( addSelected( Q3ListViewItem * ) ) );
+ connect( mAddresseeList, SIGNAL( returnPressed( Q3ListViewItem * ) ),
+ SLOT( selectNextItem( Q3ListViewItem * ) ) );
@@ -128,3 +131,3 @@ AddresseeDialog::AddresseeDialog( QWidget *parent, bool multiple ) :
loadAddressBook();
- QValueList<int> splitterSize;
+ Q3ValueList<int> splitterSize;
splitterSize.append( ( width() / 5 ) * 3 );
@@ -174,3 +177,3 @@ void AddresseeDialog::loadAddressBook()
-void AddresseeDialog::addCompletionItem( const QString &str, QListViewItem *item )
+void AddresseeDialog::addCompletionItem( const QString &str, Q3ListViewItem *item )
{
@@ -186,3 +189,3 @@ void AddresseeDialog::selectItem( const QString &str )
- QListViewItem *item = mItemDict.find( str );
+ Q3ListViewItem *item = mItemDict.find( str );
if ( item ) {
@@ -195,3 +198,3 @@ void AddresseeDialog::selectItem( const QString &str )
-void AddresseeDialog::updateEdit( QListViewItem *item )
+void AddresseeDialog::updateEdit( Q3ListViewItem *item )
{
@@ -201,6 +204,6 @@ void AddresseeDialog::updateEdit( QListViewItem *item )
-void AddresseeDialog::selectNextItem( QListViewItem *item )
+void AddresseeDialog::selectNextItem( Q3ListViewItem *item )
{
addSelected( item );
- QListViewItem *next = item->nextSibling();
+ Q3ListViewItem *next = item->nextSibling();
if ( next ) {
@@ -211,3 +214,3 @@ void AddresseeDialog::selectNextItem( QListViewItem *item )
}
-void AddresseeDialog::addSelected( QListViewItem *item )
+void AddresseeDialog::addSelected( Q3ListViewItem *item )
{
@@ -218,3 +221,3 @@ void AddresseeDialog::addSelected( QListViewItem *item )
- QListViewItem *selectedItem = mSelectedDict.find( a.uid() );
+ Q3ListViewItem *selectedItem = mSelectedDict.find( a.uid() );
if ( !selectedItem ) {
@@ -228,6 +231,6 @@ void AddresseeDialog::removeSelected()
{
- QListViewItem *item = mSelectedList->selectedItem();
+ Q3ListViewItem *item = mSelectedList->selectedItem();
AddresseeItem *addrItem = (AddresseeItem *)( item );
if ( !addrItem ) return;
- QListViewItem *next = item->nextSibling();
+ Q3ListViewItem *next = item->nextSibling();
mSelectedDict.remove( addrItem->addressee().uid() );
@@ -257,3 +260,3 @@ Addressee::List AddresseeDialog::addressees()
if ( mMultiple ) {
- QListViewItem *item = mSelectedList->firstChild();
+ Q3ListViewItem *item = mSelectedList->firstChild();
while( item ) {