summaryrefslogtreecommitdiffstats
path: root/kmail/accountcombobox.cpp
diff options
context:
space:
mode:
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