diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-22 00:30:31 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-22 00:30:31 +0000 |
commit | 69cac65817d949cda2672ec4f0aa73d5e66a0ba1 (patch) | |
tree | 073fde0496ea90eb5bf5cffe66a8da43a9f55fbc /kopete/kopete/addcontactwizard/addcontactwizard.cpp | |
parent | 3467e6464beac3a162839bf7078e22e3a74d73e7 (diff) | |
download | tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.tar.gz tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.zip |
TQt4 port kdenetwork
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/kopete/addcontactwizard/addcontactwizard.cpp')
-rw-r--r-- | kopete/kopete/addcontactwizard/addcontactwizard.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kopete/kopete/addcontactwizard/addcontactwizard.cpp b/kopete/kopete/addcontactwizard/addcontactwizard.cpp index 7198d53c..82da868a 100644 --- a/kopete/kopete/addcontactwizard/addcontactwizard.cpp +++ b/kopete/kopete/addcontactwizard/addcontactwizard.cpp @@ -71,8 +71,8 @@ #include "kopeteaccount.h" #include "kopetegroup.h" -AddContactWizard::AddContactWizard( TQWidget *parent, const char *name ) -: AddContactWizard_Base( parent, name ) +AddContactWizard::AddContactWizard( TQWidget *tqparent, const char *name ) +: AddContactWizard_Base( tqparent, name ) { //TQVBox *kabcPageVbox = new TQVBox(this->page(1)); m_addressbookSelectorWidget = new Kopete::UI::AddressBookSelectorWidget(this->page(1)); @@ -96,7 +96,7 @@ AddContactWizard::AddContactWizard( TQWidget *parent, const char *name ) for(Kopete::Account *i=accounts.first() ; i; i=accounts.next() ) { accountLVI= new TQCheckListItem( protocolListView, i->accountLabel(), TQCheckListItem::CheckBox); - accountLVI->setText(1,i->protocol()->displayName() + TQString::fromLatin1(" ") ); + accountLVI->setText(1,i->protocol()->displayName() + TQString::tqfromLatin1(" ") ); //FIXME - I'm not sure the column 1 is a right place for the colored icon -Olivier accountLVI->setPixmap( 1, i->accountIcon() ); m_accountItems.insert(accountLVI,i); @@ -202,7 +202,7 @@ void AddContactWizard::accept() TQCheckListItem *check = dynamic_cast<TQCheckListItem *>( it.current() ); if ( check && check->isOn() ) { - if(m_groupItems.contains(check)) + if(m_groupItems.tqcontains(check)) metaContact->addToGroup(m_groupItems[check]); else //it's a new group metaContact->addToGroup( Kopete::ContactList::self()->findGroup( check->text() ) ); @@ -271,7 +271,7 @@ void AddContactWizard::next() usedAccounts.append( i->protocol()->pluginId() + i->accountId() ); - if(protocolPages.contains(i)) + if(protocolPages.tqcontains(i)) continue; AddContactPage *addPage = i->protocol()->createAddContactWidget(this, i ); @@ -283,7 +283,7 @@ void AddContactWizard::next() addPage->show(); insertPage( addPage, i18n( "The user has to select the contact to add to the given account name", - "Choose New Contact For %1 Account <b>%2</b>" ).arg( i->protocol()->displayName() ).arg( item->text(0) ), indexOf( finis ) ); + "Choose New Contact For %1 Account <b>%2</b>" ).tqarg( i->protocol()->displayName() ).tqarg( item->text(0) ), indexOf( finis ) ); protocolPages.insert( i , addPage ); } } @@ -293,7 +293,7 @@ void AddContactWizard::next() for ( it = protocolPages.begin(); it != protocolPages.end(); ++it ) { Kopete::Account *i=it.key(); - if( !i || !usedAccounts.contains( i->protocol()->pluginId() + i->accountId() ) ) + if( !i || !usedAccounts.tqcontains( i->protocol()->pluginId() + i->accountId() ) ) { delete it.data(); protocolPages.remove(it); |