summaryrefslogtreecommitdiffstats
path: root/kopete/plugins/smpppdcs/smpppdcspreferences.cpp
diff options
context:
space:
mode:
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);
}