summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/sms/smseditaccountwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/sms/smseditaccountwidget.cpp')
-rw-r--r--kopete/protocols/sms/smseditaccountwidget.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/kopete/protocols/sms/smseditaccountwidget.cpp b/kopete/protocols/sms/smseditaccountwidget.cpp
index b74c24f4..97379e75 100644
--- a/kopete/protocols/sms/smseditaccountwidget.cpp
+++ b/kopete/protocols/sms/smseditaccountwidget.cpp
@@ -14,13 +14,13 @@
*************************************************************************
*/
-#include <qvgroupbox.h>
-#include <qlayout.h>
-#include <qcombobox.h>
-#include <qpushbutton.h>
-#include <qlineedit.h>
-#include <qcheckbox.h>
-#include <qradiobutton.h>
+#include <tqvgroupbox.h>
+#include <tqlayout.h>
+#include <tqcombobox.h>
+#include <tqpushbutton.h>
+#include <tqlineedit.h>
+#include <tqcheckbox.h>
+#include <tqradiobutton.h>
#include <kconfigbase.h>
#include <klocale.h>
@@ -35,10 +35,10 @@
#include "smsprotocol.h"
#include "smsaccount.h"
-SMSEditAccountWidget::SMSEditAccountWidget(SMSProtocol *protocol, Kopete::Account *account, QWidget *parent, const char */*name*/)
- : QWidget(parent), KopeteEditAccountWidget(account)
+SMSEditAccountWidget::SMSEditAccountWidget(SMSProtocol *protocol, Kopete::Account *account, TQWidget *parent, const char */*name*/)
+ : TQWidget(parent), KopeteEditAccountWidget(account)
{
- QVBoxLayout *l = new QVBoxLayout(this, QBoxLayout::Down);
+ TQVBoxLayout *l = new TQVBoxLayout(this, TQBoxLayout::Down);
preferencesDialog = new smsActPrefsUI(this);
l->addWidget(preferencesDialog);
@@ -48,25 +48,25 @@ SMSEditAccountWidget::SMSEditAccountWidget(SMSProtocol *protocol, Kopete::Accoun
m_protocol = protocol;
- QString sName;
+ TQString sName;
if (account)
{
preferencesDialog->accountId->setText(account->accountId());
//Disable changing the account ID for now
//FIXME: Remove this when we can safely change the account ID (Matt)
preferencesDialog->accountId->setDisabled(true);
- sName = account->configGroup()->readEntry("ServiceName", QString::null);
+ sName = account->configGroup()->readEntry("ServiceName", TQString::null);
preferencesDialog->subEnable->setChecked(account->configGroup()->readBoolEntry("SubEnable", false));
- preferencesDialog->subCode->setText(account->configGroup()->readEntry("SubCode", QString::null));
+ preferencesDialog->subCode->setText(account->configGroup()->readEntry("SubCode", TQString::null));
preferencesDialog->ifMessageTooLong->setCurrentItem(SMSMsgAction(account->configGroup()->readNumEntry("MsgAction", 0)));
}
preferencesDialog->serviceName->insertStringList(ServiceLoader::services());
- connect (preferencesDialog->serviceName, SIGNAL(activated(const QString &)),
- this, SLOT(setServicePreferences(const QString &)));
- connect (preferencesDialog->descButton, SIGNAL(clicked()),
- this, SLOT(showDescription()));
+ connect (preferencesDialog->serviceName, TQT_SIGNAL(activated(const TQString &)),
+ this, TQT_SLOT(setServicePreferences(const TQString &)));
+ connect (preferencesDialog->descButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(showDescription()));
for (int i=0; i < preferencesDialog->serviceName->count(); i++)
@@ -108,7 +108,7 @@ Kopete::Account* SMSEditAccountWidget::apply()
return account();
}
-void SMSEditAccountWidget::setServicePreferences(const QString& serviceName)
+void SMSEditAccountWidget::setServicePreferences(const TQString& serviceName)
{
delete service;
delete configWidget;
@@ -118,10 +118,10 @@ void SMSEditAccountWidget::setServicePreferences(const QString& serviceName)
if (service == 0L)
return;
- connect (this, SIGNAL(saved()), service, SLOT(savePreferences()));
+ connect (this, TQT_SIGNAL(saved()), service, TQT_SLOT(savePreferences()));
delete middleFrameLayout;
- middleFrameLayout = new QGridLayout(preferencesDialog->middleFrame, 1, 2, 0, 6, "middleFrameLayout");
+ middleFrameLayout = new TQGridLayout(preferencesDialog->middleFrame, 1, 2, 0, 6, "middleFrameLayout");
service->setWidgetContainer(preferencesDialog->middleFrame, middleFrameLayout);
}
@@ -129,7 +129,7 @@ void SMSEditAccountWidget::showDescription()
{
SMSService* s = ServiceLoader::loadService(preferencesDialog->serviceName->currentText(), 0L);
- QString d = s->description();
+ TQString d = s->description();
KMessageBox::information(Kopete::UI::Global::mainWidget(), d, i18n("Description"));
}