From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kmail/accountcombobox.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'kmail/accountcombobox.cpp') diff --git a/kmail/accountcombobox.cpp b/kmail/accountcombobox.cpp index afa8398e..c89ed360 100644 --- a/kmail/accountcombobox.cpp +++ b/kmail/accountcombobox.cpp @@ -34,13 +34,13 @@ using namespace KMail; -AccountComboBox::AccountComboBox( QWidget* parent, const char* name ) - : QComboBox( parent, name ) +AccountComboBox::AccountComboBox( TQWidget* parent, const char* name ) + : TQComboBox( parent, name ) { - connect( kmkernel->acctMgr(), SIGNAL( accountAdded( KMAccount* ) ), - this, SLOT( slotRefreshAccounts() ) ); - connect( kmkernel->acctMgr(), SIGNAL( accountRemoved( KMAccount* ) ), - this, SLOT( slotRefreshAccounts() ) ); + connect( kmkernel->acctMgr(), TQT_SIGNAL( accountAdded( KMAccount* ) ), + this, TQT_SLOT( slotRefreshAccounts() ) ); + connect( kmkernel->acctMgr(), TQT_SIGNAL( accountRemoved( KMAccount* ) ), + this, TQT_SLOT( slotRefreshAccounts() ) ); slotRefreshAccounts(); } @@ -52,9 +52,9 @@ void AccountComboBox::slotRefreshAccounts() // until clicking OK or Apply. This would make this class much more complex // (this would have to be different depending on whether this combo is in the // configuration dialog or not...) - QStringList accountNames; - QValueList lst = applicableAccounts(); - QValueList::ConstIterator it = lst.begin(); + TQStringList accountNames; + TQValueList lst = applicableAccounts(); + TQValueList::ConstIterator it = lst.begin(); for ( ; it != lst.end() ; ++it ) accountNames.append( (*it)->name() ); kdDebug() << k_funcinfo << accountNames << endl; @@ -67,8 +67,8 @@ void AccountComboBox::slotRefreshAccounts() void AccountComboBox::setCurrentAccount( KMAccount* account ) { int i = 0; - QValueList lst = applicableAccounts(); - QValueList::ConstIterator it = lst.begin(); + TQValueList lst = applicableAccounts(); + TQValueList::ConstIterator it = lst.begin(); for ( ; it != lst.end() ; ++it, ++i ) { if ( (*it) == account ) { setCurrentItem( i ); @@ -80,8 +80,8 @@ void AccountComboBox::setCurrentAccount( KMAccount* account ) KMAccount* AccountComboBox::currentAccount() const { int i = 0; - QValueList lst = applicableAccounts(); - QValueList::ConstIterator it = lst.begin(); + TQValueList lst = applicableAccounts(); + TQValueList::ConstIterator it = lst.begin(); while ( it != lst.end() && i < currentItem() ) { ++it; ++i; @@ -91,9 +91,9 @@ KMAccount* AccountComboBox::currentAccount() const return 0; } -QValueList KMail::AccountComboBox::applicableAccounts() const +TQValueList KMail::AccountComboBox::applicableAccounts() const { - QValueList lst; + TQValueList lst; for( KMAccount *a = kmkernel->acctMgr()->first(); a; a = kmkernel->acctMgr()->next() ) { if ( a && a->type() == "cachedimap" ) { //// ## proko2 hack. Need a list of allowed account types as ctor param -- cgit v1.2.3