summaryrefslogtreecommitdiffstats
path: root/kopete/libkopete/ui/accountselector.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kopete/libkopete/ui/accountselector.cpp
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/libkopete/ui/accountselector.cpp')
-rw-r--r--kopete/libkopete/ui/accountselector.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/kopete/libkopete/ui/accountselector.cpp b/kopete/libkopete/ui/accountselector.cpp
index 2ea8e719..345e9ab4 100644
--- a/kopete/libkopete/ui/accountselector.cpp
+++ b/kopete/libkopete/ui/accountselector.cpp
@@ -19,9 +19,9 @@
#include "kopeteaccount.h"
#include "kopeteaccountmanager.h"
-#include <qheader.h>
-#include <qlayout.h>
-#include <qpixmap.h>
+#include <tqheader.h>
+#include <tqlayout.h>
+#include <tqpixmap.h>
#include <kdebug.h>
#include <klistview.h>
@@ -32,7 +32,7 @@ class AccountListViewItem : public KListViewItem
Kopete::Account *mAccount;
public:
- AccountListViewItem(QListView *parent, Kopete::Account *acc)
+ AccountListViewItem(TQListView *parent, Kopete::Account *acc)
: KListViewItem(parent)
{
if (acc==0)
@@ -62,8 +62,8 @@ class AccountSelectorPrivate
};
-AccountSelector::AccountSelector(QWidget *parent, const char *name)
- : QWidget(parent, name)
+AccountSelector::AccountSelector(TQWidget *parent, const char *name)
+ : TQWidget(parent, name)
{
//kdDebug(14010) << k_funcinfo << "for no special protocol" << endl;
d = new AccountSelectorPrivate;
@@ -72,8 +72,8 @@ AccountSelector::AccountSelector(QWidget *parent, const char *name)
}
-AccountSelector::AccountSelector(Kopete::Protocol *proto, QWidget *parent,
- const char *name) : QWidget(parent, name)
+AccountSelector::AccountSelector(Kopete::Protocol *proto, TQWidget *parent,
+ const char *name) : TQWidget(parent, name)
{
//kdDebug(14010) << k_funcinfo << " for protocol " << proto->pluginId() << endl;
d = new AccountSelectorPrivate;
@@ -92,17 +92,17 @@ AccountSelector::~AccountSelector()
void AccountSelector::initUI()
{
kdDebug(14010) << k_funcinfo << endl;
- (new QVBoxLayout(this))->setAutoAdd(true);
+ (new TQVBoxLayout(this))->setAutoAdd(true);
d->lv = new KListView(this);
d->lv->setFullWidth(true);
- d->lv->addColumn(QString::fromLatin1(""));
+ d->lv->addColumn(TQString::fromLatin1(""));
d->lv->header()->hide();
if(d->proto != 0)
{
kdDebug(14010) << k_funcinfo << "creating list for a certain protocol" << endl;
- QDict<Kopete::Account> accounts = Kopete::AccountManager::self()->accounts(d->proto);
- QDictIterator<Kopete::Account> it(accounts);
+ TQDict<Kopete::Account> accounts = Kopete::AccountManager::self()->accounts(d->proto);
+ TQDictIterator<Kopete::Account> it(accounts);
for(; Kopete::Account *account = it.current(); ++it)
{
new AccountListViewItem(d->lv, account);
@@ -111,7 +111,7 @@ void AccountSelector::initUI()
else
{
kdDebug(14010) << k_funcinfo << "creating list of all accounts" << endl;
- QPtrList<Kopete::Account> accounts = Kopete::AccountManager::self()->accounts();
+ TQPtrList<Kopete::Account> accounts = Kopete::AccountManager::self()->accounts();
Kopete::Account *account = 0;
for(account = accounts.first(); account; account = accounts.next())
{
@@ -119,8 +119,8 @@ void AccountSelector::initUI()
}
}
- connect(d->lv, SIGNAL(selectionChanged(QListViewItem *)),
- this, SLOT(slotSelectionChanged(QListViewItem *)));
+ connect(d->lv, TQT_SIGNAL(selectionChanged(TQListViewItem *)),
+ this, TQT_SLOT(slotSelectionChanged(TQListViewItem *)));
}
@@ -129,7 +129,7 @@ void AccountSelector::setSelected(Kopete::Account *account)
if (account==0)
return;
- QListViewItemIterator it(d->lv);
+ TQListViewItemIterator it(d->lv);
while (it.current())
{
if(static_cast<AccountListViewItem *>(it.current())->account() == account)
@@ -146,7 +146,7 @@ bool AccountSelector::isSelected(Kopete::Account *account)
if (account==0)
return false;
- QListViewItemIterator it(d->lv);
+ TQListViewItemIterator it(d->lv);
while (it.current())
{
if(static_cast<AccountListViewItem *>(it.current())->account() == account)
@@ -166,7 +166,7 @@ Kopete::Account *AccountSelector::selectedItem()
}
-void AccountSelector::slotSelectionChanged(QListViewItem *item)
+void AccountSelector::slotSelectionChanged(TQListViewItem *item)
{
//kdDebug(14010) << k_funcinfo << endl;
if (item != 0)