From 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 13 Apr 2011 00:46:47 +0000 Subject: Initial conversion of kdepim to TQt This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kaddressbook/ldapsearchdialog.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'kaddressbook/ldapsearchdialog.cpp') diff --git a/kaddressbook/ldapsearchdialog.cpp b/kaddressbook/ldapsearchdialog.cpp index 7074a5966..f23049909 100644 --- a/kaddressbook/ldapsearchdialog.cpp +++ b/kaddressbook/ldapsearchdialog.cpp @@ -49,7 +49,7 @@ static TQString asUtf8( const TQByteArray &val ) { if ( val.isEmpty() ) - return TQString::null; + return TQString(); const char *data = val.data(); @@ -101,11 +101,11 @@ static TQMap& adrbookattr2ldap() return keys; } -class ContactListItem : public QListViewItem +class ContactListItem : public TQListViewItem { public: - ContactListItem( TQListView* parent, const KPIM::LdapAttrMap& attrs ) - : TQListViewItem( parent ), mAttrs( attrs ) + ContactListItem( TQListView* tqparent, const KPIM::LdapAttrMap& attrs ) + : TQListViewItem( tqparent ), mAttrs( attrs ) { } KPIM::LdapAttrMap mAttrs; @@ -139,9 +139,9 @@ TQValueList LDAPSearchDialog::Private::selectedItems( TQListVi } LDAPSearchDialog::LDAPSearchDialog( KABC::AddressBook *ab, KABCore *core, - TQWidget* parent, const char* name ) + TQWidget* tqparent, const char* name ) : KDialogBase( Plain, i18n( "Search for Addresses in Directory" ), Help | User1 | User2 | - Cancel, Default, parent, name, false, true ), + Cancel, Default, tqparent, name, false, true ), mAddressBook( ab ), mCore( core ), d( new Private ) { setButtonCancel( KStdGuiItem::close() ); @@ -152,7 +152,7 @@ LDAPSearchDialog::LDAPSearchDialog( KABC::AddressBook *ab, KABCore *core, page ); groupBox->setFrameShape( TQGroupBox::Box ); groupBox->setFrameShadow( TQGroupBox::Sunken ); - groupBox->setColumnLayout( 0, Qt::Vertical ); + groupBox->setColumnLayout( 0, TQt::Vertical ); TQGridLayout *boxLayout = new TQGridLayout( groupBox->tqlayout(), 2, 5, spacingHint() ); boxLayout->setColStretch( 1, 1 ); @@ -202,7 +202,7 @@ LDAPSearchDialog::LDAPSearchDialog( KABC::AddressBook *ab, KABCore *core, mResultListView->setShowSortIndicator( true ); topLayout->addWidget( mResultListView ); - KButtonBox *buttons = new KButtonBox( page, Qt::Horizontal ); + KButtonBox *buttons = new KButtonBox( page, TQt::Horizontal ); buttons->addButton( i18n( "Select All" ), this, TQT_SLOT( slotSelectAll() ) ); buttons->addButton( i18n( "Unselect All" ), this, TQT_SLOT( slotUnselectAll() ) ); @@ -372,7 +372,7 @@ TQString LDAPSearchDialog::makeFilter( const TQString& query, const TQString& at result = result.arg( "telephoneNumber" ).arg( query ); } else { // Error? - result = TQString::null; + result = TQString(); return result; } } @@ -384,7 +384,7 @@ void LDAPSearchDialog::slotStartSearch() { cancelQuery(); - TQApplication::setOverrideCursor( Qt::waitCursor ); + TQApplication::setOverrideCursor( TQt::waitCursor ); mSearchButton->setText( i18n( "Stop" ) ); disconnect( mSearchButton, TQT_SIGNAL( clicked() ), @@ -569,7 +569,7 @@ KABC::Addressee::List LDAPSearchDialog::importContactsUnlessTheyExist( const TQV for ( TQValueList::ConstIterator it = selectedItems.begin(); it != selectedItems.end(); ++it ) { const ContactListItem * const cli = *it; KABC::Addressee addr = convertLdapAttributesToAddressee( cli->mAttrs ); - const KABC::Addressee::List existing = mCore->addressBook()->tqfindByEmail( addr.preferredEmail() ); + const KABC::Addressee::List existing = mCore->addressBook()->findByEmail( addr.preferredEmail() ); if ( existing.isEmpty() ) { addr.setUid( KApplication::randomString( 10 ) ); -- cgit v1.2.1