summaryrefslogtreecommitdiffstats
path: root/kmail/accountcombobox.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kmail/accountcombobox.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmail/accountcombobox.cpp')
-rw-r--r--kmail/accountcombobox.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kmail/accountcombobox.cpp b/kmail/accountcombobox.cpp
index afa8398eb..c89ed360a 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<KMAccount *> lst = applicableAccounts();
- QValueList<KMAccount *>::ConstIterator it = lst.begin();
+ TQStringList accountNames;
+ TQValueList<KMAccount *> lst = applicableAccounts();
+ TQValueList<KMAccount *>::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<KMAccount *> lst = applicableAccounts();
- QValueList<KMAccount *>::ConstIterator it = lst.begin();
+ TQValueList<KMAccount *> lst = applicableAccounts();
+ TQValueList<KMAccount *>::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<KMAccount *> lst = applicableAccounts();
- QValueList<KMAccount *>::ConstIterator it = lst.begin();
+ TQValueList<KMAccount *> lst = applicableAccounts();
+ TQValueList<KMAccount *>::ConstIterator it = lst.begin();
while ( it != lst.end() && i < currentItem() ) {
++it;
++i;
@@ -91,9 +91,9 @@ KMAccount* AccountComboBox::currentAccount() const
return 0;
}
-QValueList<KMAccount *> KMail::AccountComboBox::applicableAccounts() const
+TQValueList<KMAccount *> KMail::AccountComboBox::applicableAccounts() const
{
- QValueList<KMAccount *> lst;
+ TQValueList<KMAccount *> 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