summaryrefslogtreecommitdiffstats
path: root/kopete/plugins/smpppdcs/smpppdcspreferences.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/plugins/smpppdcs/smpppdcspreferences.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/plugins/smpppdcs/smpppdcspreferences.cpp')
-rw-r--r--kopete/plugins/smpppdcs/smpppdcspreferences.cpp58
1 files changed, 29 insertions, 29 deletions
diff --git a/kopete/plugins/smpppdcs/smpppdcspreferences.cpp b/kopete/plugins/smpppdcs/smpppdcspreferences.cpp
index ddce3572..671008bc 100644
--- a/kopete/plugins/smpppdcs/smpppdcspreferences.cpp
+++ b/kopete/plugins/smpppdcs/smpppdcspreferences.cpp
@@ -14,9 +14,9 @@
*************************************************************************
*/
-#include <qlayout.h>
-#include <qregexp.h>
-#include <qradiobutton.h>
+#include <tqlayout.h>
+#include <tqregexp.h>
+#include <tqradiobutton.h>
#include <klistview.h>
#include <klineedit.h>
@@ -35,17 +35,17 @@
typedef KGenericFactory<SMPPPDCSPreferences> SMPPPDCSPreferencesFactory;
K_EXPORT_COMPONENT_FACTORY(kcm_kopete_smpppdcs, SMPPPDCSPreferencesFactory("kcm_kopete_smpppdcs"))
-SMPPPDCSPreferences::SMPPPDCSPreferences(QWidget * parent, const char * /* name */, const QStringList& args)
+SMPPPDCSPreferences::SMPPPDCSPreferences(TQWidget * parent, const char * /* name */, const TQStringList& args)
: KCModule(SMPPPDCSPreferencesFactory::instance(), parent, args), m_ui(NULL) {
Kopete::AccountManager * manager = Kopete::AccountManager::self();
- (new QVBoxLayout(this))->setAutoAdd(true);
+ (new TQVBoxLayout(this))->setAutoAdd(true);
m_ui = new SMPPPDCSPrefs(this);
- for(QPtrListIterator<Kopete::Account> it(manager->accounts()); it.current(); ++it)
+ for(TQPtrListIterator<Kopete::Account> it(manager->accounts()); it.current(); ++it)
{
- QString protoName;
- QRegExp rex("(.*)Protocol");
+ TQString protoName;
+ TQRegExp rex("(.*)Protocol");
if(rex.search((*it)->protocol()->pluginId()) > -1) {
protoName = rex.cap(1);
@@ -54,11 +54,11 @@ SMPPPDCSPreferences::SMPPPDCSPreferences(QWidget * parent, const char * /* name
}
if(it.current()->inherits("Kopete::ManagedConnectionAccount")) {
- protoName += QString(", %1").arg(i18n("connection status is managed by Kopete"));
+ protoName += TQString(", %1").arg(i18n("connection status is managed by Kopete"));
}
- QCheckListItem * cli = new QCheckListItem(m_ui->accountList,
- (*it)->accountId() + " (" + protoName + ")", QCheckListItem::CheckBox);
+ TQCheckListItem * cli = new TQCheckListItem(m_ui->accountList,
+ (*it)->accountId() + " (" + protoName + ")", TQCheckListItem::CheckBox);
cli->setPixmap(0, (*it)->accountIcon());
m_accountMapOld[cli->text(0)] = AccountPrivMap(FALSE, (*it)->protocol()->pluginId() + "_" + (*it)->accountId());
@@ -66,15 +66,15 @@ SMPPPDCSPreferences::SMPPPDCSPreferences(QWidget * parent, const char * /* name
m_ui->accountList->insertItem(cli);
}
- connect(m_ui->accountList, SIGNAL(clicked(QListViewItem *)), this, SLOT(listClicked(QListViewItem *)));
+ connect(m_ui->accountList, TQT_SIGNAL(clicked(TQListViewItem *)), this, TQT_SLOT(listClicked(TQListViewItem *)));
// connect for modified
- connect(m_ui->useNetstat, SIGNAL(clicked()), this, SLOT(slotModified()));
- connect(m_ui->useSmpppd, SIGNAL(clicked()), this, SLOT(slotModified()));
+ connect(m_ui->useNetstat, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotModified()));
+ connect(m_ui->useSmpppd, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotModified()));
- connect(m_ui->SMPPPDLocation->server, SIGNAL(textChanged(const QString&)), this, SLOT(slotModified()));
- connect(m_ui->SMPPPDLocation->port, SIGNAL(valueChanged(int)), this, SLOT(slotModified()));
- connect(m_ui->SMPPPDLocation->Password, SIGNAL(textChanged(const QString&)), this, SLOT(slotModified()));
+ connect(m_ui->SMPPPDLocation->server, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotModified()));
+ connect(m_ui->SMPPPDLocation->port, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotModified()));
+ connect(m_ui->SMPPPDLocation->Password, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotModified()));
load();
}
@@ -83,9 +83,9 @@ SMPPPDCSPreferences::~SMPPPDCSPreferences() {
delete m_ui;
}
-void SMPPPDCSPreferences::listClicked(QListViewItem * item)
+void SMPPPDCSPreferences::listClicked(TQListViewItem * item)
{
- QCheckListItem * cli = dynamic_cast<QCheckListItem *>(item);
+ TQCheckListItem * cli = dynamic_cast<TQCheckListItem *>(item);
if(cli->isOn() != m_accountMapCur[cli->text(0)].m_on) {
AccountMap::iterator itOld = m_accountMapOld.begin();
@@ -105,9 +105,9 @@ void SMPPPDCSPreferences::listClicked(QListViewItem * item)
void SMPPPDCSPreferences::defaults()
{
- QListViewItemIterator it(m_ui->accountList);
+ TQListViewItemIterator it(m_ui->accountList);
while(it.current()) {
- QCheckListItem * cli = dynamic_cast<QCheckListItem *>(it.current());
+ TQCheckListItem * cli = dynamic_cast<TQCheckListItem *>(it.current());
cli->setOn(FALSE);
++it;
}
@@ -127,12 +127,12 @@ void SMPPPDCSPreferences::load()
SMPPPDCSConfig::self()->readConfig();
- static QString rexStr = "^(.*) \\((.*)\\)";
- QRegExp rex(rexStr);
- QStringList list = SMPPPDCSConfig::self()->ignoredAccounts();
- QListViewItemIterator it(m_ui->accountList);
+ static TQString rexStr = "^(.*) \\((.*)\\)";
+ TQRegExp rex(rexStr);
+ TQStringList list = SMPPPDCSConfig::self()->ignoredAccounts();
+ TQListViewItemIterator it(m_ui->accountList);
while(it.current()) {
- QCheckListItem * cli = dynamic_cast<QCheckListItem *>(it.current());
+ TQCheckListItem * cli = dynamic_cast<TQCheckListItem *>(it.current());
if(rex.search(cli->text(0)) > -1) {
bool isOn = list.contains(rex.cap(2) + "Protocol_" + rex.cap(1));
// m_accountMapOld[cli->text(0)].m_on = isOn;
@@ -154,11 +154,11 @@ void SMPPPDCSPreferences::load()
void SMPPPDCSPreferences::save()
{
- QStringList list;
- QListViewItemIterator it(m_ui->accountList);
+ TQStringList list;
+ TQListViewItemIterator it(m_ui->accountList);
while(it.current()) {
- QCheckListItem * cli = dynamic_cast<QCheckListItem *>(it.current());
+ TQCheckListItem * cli = dynamic_cast<TQCheckListItem *>(it.current());
if(cli->isOn()) {
list.append(m_accountMapCur[cli->text(0)].m_id);
}