All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Brief description of class still missing. More...
#include <ConnectionParam.h>
Public Member Functions | |
ConnectionParam (QWidget *parent=0) | |
void | saveParam () |
~ConnectionParam () | |
Protected Slots | |
void | on_proxyConnection_toggled (bool b) |
Brief description of class still missing.
Full description of class still missing
QGpGuiTools::ConnectionParam::ConnectionParam | ( | QWidget * | parent = 0 | ) |
Description of constructor still missing
References on_proxyConnection_toggled(), and TRACE.
: Dialog(parent) { TRACE; setupUi(this); #ifdef Q_WS_MAC QSettings reg(qApp->organizationDomain()); #else QSettings reg(qApp->organizationName()); #endif reg.beginGroup( "connection" ); if(reg.value( "direct", false).toBool()) { directConnection->setChecked(true); } else { proxyConnection->setChecked(true); } proxyServer->setText(reg.value("httpProxy", "www-cache").toString()); proxyPort->setValue(reg.value("httpProxyPort", 3128).toInt()); on_proxyConnection_toggled(proxyConnection->isChecked()); }
void QGpGuiTools::ConnectionParam::on_proxyConnection_toggled | ( | bool | b | ) | [protected, slot] |
References TRACE.
Referenced by ConnectionParam().
{ TRACE; proxyServerLabel->setEnabled(b); proxyServer->setEnabled(b); proxyPortLabel->setEnabled(b); proxyPort->setEnabled(b); }
References TRACE.
{ TRACE; #ifdef Q_WS_MAC QSettings reg(qApp->organizationDomain()); #else QSettings reg(qApp->organizationName()); #endif reg.beginGroup( "connection" ); reg.setValue( "direct", directConnection->isChecked()); reg.setValue( "httpProxy", proxyServer->text()); reg.setValue( "httpProxyPort", proxyPort->value()); }