|
|
|
@ -52,6 +52,8 @@ GeneralForm::GeneralForm(SettingsWidget *myParent) :
@@ -52,6 +52,8 @@ GeneralForm::GeneralForm(SettingsWidget *myParent) :
|
|
|
|
|
else |
|
|
|
|
bodyUI->styleBrowser->setCurrentText("None"); |
|
|
|
|
|
|
|
|
|
bodyUI->autoAwaySpinBox->setValue(Settings::getInstance().getAutoAwayTime()); |
|
|
|
|
|
|
|
|
|
bodyUI->cbUDPDisabled->setChecked(Settings::getInstance().getForceTCP()); |
|
|
|
|
bodyUI->proxyAddr->setText(Settings::getInstance().getProxyAddr()); |
|
|
|
|
int port = Settings::getInstance().getProxyPort(); |
|
|
|
@ -73,6 +75,7 @@ GeneralForm::GeneralForm(SettingsWidget *myParent) :
@@ -73,6 +75,7 @@ GeneralForm::GeneralForm(SettingsWidget *myParent) :
|
|
|
|
|
connect(bodyUI->proxyPort, SIGNAL(valueChanged(int)), this, SLOT(onProxyPortEdited(int))); |
|
|
|
|
connect(bodyUI->cbUseProxy, &QCheckBox::stateChanged, this, &GeneralForm::onUseProxyUpdated); |
|
|
|
|
connect(bodyUI->styleBrowser, SIGNAL(currentTextChanged(QString)), this, SLOT(onStyleSelected(QString))); |
|
|
|
|
connect(bodyUI->autoAwaySpinBox, SIGNAL(editingFinished()), this, SLOT(onAutoAwayChanged())); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
GeneralForm::~GeneralForm() |
|
|
|
@ -107,6 +110,11 @@ void GeneralForm::onStyleSelected(QString style)
@@ -107,6 +110,11 @@ void GeneralForm::onStyleSelected(QString style)
|
|
|
|
|
parent->setStyle(style); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void GeneralForm::onAutoAwayChanged() |
|
|
|
|
{ |
|
|
|
|
Settings::getInstance().setAutoAwayTime(bodyUI->autoAwaySpinBox->value()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void GeneralForm::onSetStatusChange() |
|
|
|
|
{ |
|
|
|
|
Settings::getInstance().setStatusChangeNotificationEnabled(bodyUI->statusChangesCheckbox->isChecked()); |
|
|
|
|