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 449164733b)
pull/38/head
Slávek Banko 7 years ago
parent 9ff4b6fdc3
commit 92f11c1199

@ -288,6 +288,34 @@
<string>Check this box to enable SSL encrypted communication with the server. Note that this is not end-to-end encryption, but rather encrypted communication with the server.</string> <string>Check this box to enable SSL encrypted communication with the server. Note that this is not end-to-end encryption, but rather encrypted communication with the server.</string>
</property> </property>
</widget> </widget>
<widget class="TQLabel">
<property name="name">
<cstring>lblUseSSL</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>3</hsizetype>
<vsizetype>1</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>&lt;dd&gt;Select this only for old Jabber servers that use a separate SSL port. Newer servers use StartSSL and this option should not be required.&lt;/dd&gt;</string>
</property>
<property name="alignment">
<set>WordBreak|AlignVCenter</set>
</property>
</widget>
<widget class="TQCheckBox"> <widget class="TQCheckBox">
<property name="name"> <property name="name">
<cstring>cbAllowPlainTextPassword</cstring> <cstring>cbAllowPlainTextPassword</cstring>
@ -427,6 +455,34 @@
</widget> </widget>
</hbox> </hbox>
</widget> </widget>
<widget class="TQLabel">
<property name="name">
<cstring>lblCustomServer</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>3</hsizetype>
<vsizetype>1</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>&lt;dd&gt;Newer Jabber servers may not work correctly if a server name and port are enforced, because this would prevent the use of StartSSL and a newer Jabber protocol.&lt;/dd&gt;</string>
</property>
<property name="alignment">
<set>WordBreak|AlignVCenter</set>
</property>
</widget>
</vbox> </vbox>
</widget> </widget>
<widget class="TQGroupBox"> <widget class="TQGroupBox">

@ -93,6 +93,9 @@ void JabberEditAccountWidget::reopen ()
mServer->setText (account()->configGroup()->readEntry ("Server", TQString())); mServer->setText (account()->configGroup()->readEntry ("Server", TQString()));
cbUseSSL->setChecked (account()->configGroup()->readBoolEntry( "UseSSL", false)); cbUseSSL->setChecked (account()->configGroup()->readBoolEntry( "UseSSL", false));
if( cbUseSSL->isChecked() ) {
lblUseSSL->setEnabled(true);
}
mPort->setValue (account()->configGroup()->readNumEntry("Port", 5222)); mPort->setValue (account()->configGroup()->readNumEntry("Port", 5222));
@ -106,6 +109,7 @@ void JabberEditAccountWidget::reopen ()
mServer->setEnabled(true); mServer->setEnabled(true);
labelPort->setEnabled(true); labelPort->setEnabled(true);
mPort->setEnabled(true); mPort->setEnabled(true);
lblCustomServer->setEnabled(true);
} }
else else
{ {
@ -226,6 +230,7 @@ void JabberEditAccountWidget::updateServerField ()
mServer->setEnabled(false); mServer->setEnabled(false);
labelPort->setEnabled(false); labelPort->setEnabled(false);
mPort->setEnabled(false); mPort->setEnabled(false);
lblCustomServer->setEnabled(false);
} }
else else
{ {
@ -233,6 +238,7 @@ void JabberEditAccountWidget::updateServerField ()
mServer->setEnabled(true); mServer->setEnabled(true);
labelPort->setEnabled(true); labelPort->setEnabled(true);
mPort->setEnabled(true); mPort->setEnabled(true);
lblCustomServer->setEnabled(true);
} }
} }
@ -274,11 +280,16 @@ void JabberEditAccountWidget::slotChangePasswordFinished ()
void JabberEditAccountWidget::sslToggled (bool value) void JabberEditAccountWidget::sslToggled (bool value)
{ {
if (value && (mPort->value() == 5222)) if (value && (mPort->value() == 5222)) {
mPort->stepUp (); mPort->stepUp ();
else }
if(!value && (mPort->value() == 5223)) else {
if(!value && (mPort->value() == 5223)) {
mPort->stepDown (); mPort->stepDown ();
}
}
lblUseSSL->setEnabled( value );
} }
#include "jabbereditaccountwidget.moc" #include "jabbereditaccountwidget.moc"

Loading…
Cancel
Save