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 --- kmail/recipientspicker.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'kmail/recipientspicker.cpp') diff --git a/kmail/recipientspicker.cpp b/kmail/recipientspicker.cpp index a45a76830..38b00d14b 100644 --- a/kmail/recipientspicker.cpp +++ b/kmail/recipientspicker.cpp @@ -227,9 +227,9 @@ RecipientItem *RecipientViewItem::recipientItem() const } -RecipientsListToolTip::RecipientsListToolTip( TQWidget *parent, +RecipientsListToolTip::RecipientsListToolTip( TQWidget *tqparent, KListView *listView ) - : TQToolTip( parent ) + : TQToolTip( tqparent ) { mListView = listView; } @@ -294,13 +294,13 @@ RecipientItem::List RecipientsCollection::items() const bool RecipientsCollection::hasEquivalentItem( RecipientItem *item ) const { - return mKeyMap.find( item->key() ) != mKeyMap.end(); + return mKeyMap.tqfind( item->key() ) != mKeyMap.end(); } RecipientItem * RecipientsCollection::getEquivalentItem( RecipientItem *item) const { TQMap::ConstIterator it; - it = mKeyMap.find( item->key() ); + it = mKeyMap.tqfind( item->key() ); if ( it == mKeyMap.end() ) return 0; return (*it); @@ -327,8 +327,8 @@ TQString RecipientsCollection::id() const return mId; } -SearchLine::SearchLine( TQWidget *parent, KListView *listView ) - : KListViewSearchLine( parent, listView ) +SearchLine::SearchLine( TQWidget *tqparent, KListView *listView ) + : KListViewSearchLine( tqparent, listView ) { } @@ -340,14 +340,14 @@ void SearchLine::keyPressEvent( TQKeyEvent *ev ) } -RecipientsPicker::RecipientsPicker( TQWidget *parent ) - : TQDialog( parent, "RecipientsPicker" ) +RecipientsPicker::RecipientsPicker( TQWidget *tqparent ) + : TQDialog( tqparent, "RecipientsPicker" ) #ifndef KDEPIM_NEW_DISTRLISTS , mDistributionListManager( 0 ) #endif ,mLdapSearchDialog( 0 ) { -// KWin::setType( winId(), NET::Dock ); +// KWin::setType( winId(), NET::TQt::Dock ); setCaption( i18n("Select Recipient") ); @@ -505,7 +505,7 @@ void RecipientsPicker::insertAddressBook( KABC::AddressBook *addressbook ) item->setAddressee( *it, *it3 ); TQMap::ConstIterator collIt; - collIt = collectionMap.find( it->resource() ); + collIt = collectionMap.tqfind( it->resource() ); if ( collIt != collectionMap.end() ) { (*collIt)->addItem( item ); } @@ -514,7 +514,7 @@ void RecipientsPicker::insertAddressBook( KABC::AddressBook *addressbook ) TQStringList::ConstIterator catIt; for( catIt = categories.begin(); catIt != categories.end(); ++catIt ) { TQMap::ConstIterator catMapIt; - catMapIt = categoryMap.find( *catIt ); + catMapIt = categoryMap.tqfind( *catIt ); RecipientsCollection *collection; if ( catMapIt == categoryMap.end() ) { collection = new RecipientsCollection( *catIt ); @@ -838,7 +838,7 @@ void RecipientsPicker::setFocusList() void RecipientsPicker::resetSearch() { - mSearchLine->setText( TQString::null ); + mSearchLine->setText( TQString() ); } void RecipientsPicker::slotSearchLDAP() -- cgit v1.2.1