summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/jabber/ui/jabbereditaccountwidget.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/protocols/jabber/ui/jabbereditaccountwidget.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/protocols/jabber/ui/jabbereditaccountwidget.cpp')
-rw-r--r--kopete/protocols/jabber/ui/jabbereditaccountwidget.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/kopete/protocols/jabber/ui/jabbereditaccountwidget.cpp b/kopete/protocols/jabber/ui/jabbereditaccountwidget.cpp
index b0284e41..6c928ad6 100644
--- a/kopete/protocols/jabber/ui/jabbereditaccountwidget.cpp
+++ b/kopete/protocols/jabber/ui/jabbereditaccountwidget.cpp
@@ -18,12 +18,12 @@
***************************************************************************/
#include <kdebug.h>
-#include <qlineedit.h>
-#include <qcheckbox.h>
-#include <qpushbutton.h>
-#include <qspinbox.h>
-#include <qcombobox.h>
-#include <qlabel.h>
+#include <tqlineedit.h>
+#include <tqcheckbox.h>
+#include <tqpushbutton.h>
+#include <tqspinbox.h>
+#include <tqcombobox.h>
+#include <tqlabel.h>
#include <kconfig.h>
#include <kmessagebox.h>
@@ -40,18 +40,18 @@
#include "jabberregisteraccount.h"
#include "dlgjabberchangepassword.h"
-JabberEditAccountWidget::JabberEditAccountWidget (JabberProtocol * proto, JabberAccount * ident, QWidget * parent, const char *name)
+JabberEditAccountWidget::JabberEditAccountWidget (JabberProtocol * proto, JabberAccount * ident, TQWidget * parent, const char *name)
: DlgJabberEditAccountWidget (parent, name), KopeteEditAccountWidget (ident)
{
m_protocol = proto;
- connect (mID, SIGNAL (textChanged (const QString &)), this, SLOT (updateServerField ()));
- connect (cbCustomServer, SIGNAL (toggled (bool)), this, SLOT (updateServerField ()));
+ connect (mID, TQT_SIGNAL (textChanged (const TQString &)), this, TQT_SLOT (updateServerField ()));
+ connect (cbCustomServer, TQT_SIGNAL (toggled (bool)), this, TQT_SLOT (updateServerField ()));
- connect (cbUseSSL, SIGNAL (toggled (bool)), this, SLOT (sslToggled (bool)));
+ connect (cbUseSSL, TQT_SIGNAL (toggled (bool)), this, TQT_SLOT (sslToggled (bool)));
- connect (btnChangePassword, SIGNAL ( clicked() ), this, SLOT ( slotChangePasswordClicked () ));
+ connect (btnChangePassword, TQT_SIGNAL ( clicked() ), this, TQT_SLOT ( slotChangePasswordClicked () ));
if (account())
{
@@ -63,7 +63,7 @@ JabberEditAccountWidget::JabberEditAccountWidget (JabberProtocol * proto, Jabber
{
// this is a new account
btnChangePassword->setEnabled ( false );
- connect (btnRegister, SIGNAL (clicked ()), this, SLOT (registerClicked ()));
+ connect (btnRegister, TQT_SIGNAL (clicked ()), this, TQT_SLOT (registerClicked ()));
}
}
@@ -88,15 +88,15 @@ void JabberEditAccountWidget::reopen ()
mPass->load (&account()->password ());
cbAutoConnect->setChecked (account()->excludeConnect());
- mResource->setText (account()->configGroup()->readEntry ("Resource", QString::fromLatin1("Kopete")));
+ mResource->setText (account()->configGroup()->readEntry ("Resource", TQString::fromLatin1("Kopete")));
mPriority->setValue (account()->configGroup()->readNumEntry ("Priority", 5));
- mServer->setText (account()->configGroup()->readEntry ("Server", QString::null));
+ mServer->setText (account()->configGroup()->readEntry ("Server", TQString::null));
cbUseSSL->setChecked (account()->configGroup()->readBoolEntry( "UseSSL", false));
mPort->setValue (account()->configGroup()->readNumEntry("Port", 5222));
- QString auth = account()->configGroup()->readEntry("AuthType", QString::null);
+ TQString auth = account()->configGroup()->readEntry("AuthType", TQString::null);
cbCustomServer->setChecked (account()->configGroup()->readBoolEntry("CustomServer",false));
@@ -119,7 +119,7 @@ void JabberEditAccountWidget::reopen ()
leLocalIP->setText (KGlobal::config()->readEntry("LocalIP", ""));
sbLocalPort->setValue (KGlobal::config()->readNumEntry("LocalPort", 8010));
- leProxyJID->setText (account()->configGroup()->readEntry("ProxyJID", QString::null));
+ leProxyJID->setText (account()->configGroup()->readEntry("ProxyJID", TQString::null));
// Privacy
cbSendEvents->setChecked( account()->configGroup()->readBoolEntry("SendEvents", true) );
@@ -173,8 +173,8 @@ void JabberEditAccountWidget::writeConfig ()
account()->configGroup()->writeEntry("AllowPlainTextPassword", cbAllowPlainTextPassword->isChecked());
account()->configGroup()->writeEntry("Server", mServer->text ());
account()->configGroup()->writeEntry("Resource", mResource->text ());
- account()->configGroup()->writeEntry("Priority", QString::number (mPriority->value ()));
- account()->configGroup()->writeEntry("Port", QString::number (mPort->value ()));
+ account()->configGroup()->writeEntry("Priority", TQString::number (mPriority->value ()));
+ account()->configGroup()->writeEntry("Port", TQString::number (mPort->value ()));
account()->setExcludeConnect(cbAutoConnect->isChecked());
@@ -217,7 +217,7 @@ void JabberEditAccountWidget::updateServerField ()
if(!cbCustomServer->isChecked())
{
- QString newServer = mID->text().section("@", 1);
+ TQString newServer = mID->text().section("@", 1);
mPort->setValue(5222);
// check if ssl is enabled and set the port correctly
sslToggled(cbUseSSL->isChecked());
@@ -258,7 +258,7 @@ void JabberEditAccountWidget::slotChangePasswordClicked ()
DlgJabberChangePassword *passwordDlg = new DlgJabberChangePassword ( account (), this );
- connect ( passwordDlg, SIGNAL ( destroyed () ), this, SLOT ( slotChangePasswordFinished () ) );
+ connect ( passwordDlg, TQT_SIGNAL ( destroyed () ), this, TQT_SLOT ( slotChangePasswordFinished () ) );
passwordDlg->show ();