summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/jabber/ui/jabbereditaccountwidget.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2018-06-17 15:04:58 +0200
committerSlávek Banko <slavek.banko@axis.cz>2018-06-17 15:05:06 +0200
commit92f11c11999eebc35427a9c8a8789d851f34674e (patch)
treed33616cc8d0855c90e8cd738cb655679d4a17a34 /kopete/protocols/jabber/ui/jabbereditaccountwidget.cpp
parent9ff4b6fdc36a74a858e4e00f87eee1e1f619bd82 (diff)
downloadtdenetwork-92f11c11999eebc35427a9c8a8789d851f34674e.tar.gz
tdenetwork-92f11c11999eebc35427a9c8a8789d851f34674e.zip
kopete: Add descriptions for connection options
This relates to bug 2669 Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 449164733b0a1a3096ca1bbd33efee178b95bd82)
Diffstat (limited to 'kopete/protocols/jabber/ui/jabbereditaccountwidget.cpp')
-rw-r--r--kopete/protocols/jabber/ui/jabbereditaccountwidget.cpp17
1 files changed, 14 insertions, 3 deletions
diff --git a/kopete/protocols/jabber/ui/jabbereditaccountwidget.cpp b/kopete/protocols/jabber/ui/jabbereditaccountwidget.cpp
index 4fecd6c4..82f9aaf0 100644
--- a/kopete/protocols/jabber/ui/jabbereditaccountwidget.cpp
+++ b/kopete/protocols/jabber/ui/jabbereditaccountwidget.cpp
@@ -93,6 +93,9 @@ void JabberEditAccountWidget::reopen ()
mServer->setText (account()->configGroup()->readEntry ("Server", TQString()));
cbUseSSL->setChecked (account()->configGroup()->readBoolEntry( "UseSSL", false));
+ if( cbUseSSL->isChecked() ) {
+ lblUseSSL->setEnabled(true);
+ }
mPort->setValue (account()->configGroup()->readNumEntry("Port", 5222));
@@ -106,6 +109,7 @@ void JabberEditAccountWidget::reopen ()
mServer->setEnabled(true);
labelPort->setEnabled(true);
mPort->setEnabled(true);
+ lblCustomServer->setEnabled(true);
}
else
{
@@ -226,6 +230,7 @@ void JabberEditAccountWidget::updateServerField ()
mServer->setEnabled(false);
labelPort->setEnabled(false);
mPort->setEnabled(false);
+ lblCustomServer->setEnabled(false);
}
else
{
@@ -233,6 +238,7 @@ void JabberEditAccountWidget::updateServerField ()
mServer->setEnabled(true);
labelPort->setEnabled(true);
mPort->setEnabled(true);
+ lblCustomServer->setEnabled(true);
}
}
@@ -274,11 +280,16 @@ void JabberEditAccountWidget::slotChangePasswordFinished ()
void JabberEditAccountWidget::sslToggled (bool value)
{
- if (value && (mPort->value() == 5222))
+ if (value && (mPort->value() == 5222)) {
mPort->stepUp ();
- else
- if(!value && (mPort->value() == 5223))
+ }
+ else {
+ if(!value && (mPort->value() == 5223)) {
mPort->stepDown ();
+ }
+ }
+
+ lblUseSSL->setEnabled( value );
}
#include "jabbereditaccountwidget.moc"