|
|
|
@ -71,6 +71,8 @@ bool IConfigOptions::isChanged() const |
|
|
|
|
|| cf_TrayNotifyDelay != ui->edTrayDelay->value() |
|
|
|
|
|| cf_ShowTimestamp != ui->chkTimestamp->isChecked() |
|
|
|
|
|| cf_TimestampFormat != ui->edTimestamp->text() |
|
|
|
|
|| cf_ManualKeepaliveEnabled != ui->chkManualKeepalive->isChecked() |
|
|
|
|
|| cf_ManualKeepalive != ui->edManualKeepalive->value() |
|
|
|
|
|| cf_QuitMessage != ui->edQuit->text() |
|
|
|
|
|| cf_Font.family() != ui->edFont->currentFont().family() |
|
|
|
|
|| cf_FontSize != ui->edFontSize->value() |
|
|
|
@ -100,6 +102,8 @@ void IConfigOptions::save() |
|
|
|
|
conf.setCommon("TrayNotifyDelay", QString::number(ui->edTrayDelay->value())); |
|
|
|
|
conf.setCommon("ShowTimestamp", QString::number(ui->chkTimestamp->isChecked())); |
|
|
|
|
conf.setCommon("TimestampFormat", ui->edTimestamp->text()); |
|
|
|
|
conf.setCommon("ManualKeepaliveEnabled", QString::number(ui->chkManualKeepalive->isChecked())); |
|
|
|
|
conf.setCommon("ManualKeepalive", QString::number(ui->edManualKeepalive->value())); |
|
|
|
|
conf.setCommon("QuitMessage", ui->edQuit->text()); |
|
|
|
|
conf.setCommon("Font", ui->edFont->currentFont().family()); |
|
|
|
|
conf.setCommon("FontSize", QString::number(ui->edFontSize->value())); |
|
|
|
@ -124,6 +128,8 @@ void IConfigOptions::reset() |
|
|
|
|
ui->edTrayDelay->setValue(cf_TrayNotifyDelay); |
|
|
|
|
ui->chkTimestamp->setChecked(cf_ShowTimestamp); |
|
|
|
|
ui->edTimestamp->setText(cf_TimestampFormat); |
|
|
|
|
ui->chkManualKeepalive->setChecked(cf_ManualKeepaliveEnabled); |
|
|
|
|
ui->edManualKeepalive->setValue(cf_ManualKeepalive); |
|
|
|
|
ui->edQuit->setText(cf_QuitMessage); |
|
|
|
|
ui->edFont->setCurrentFont(cf_Font); |
|
|
|
|
ui->edFontSize->setValue(cf_FontSize); |
|
|
|
@ -156,6 +162,8 @@ void IConfigOptions::reload() |
|
|
|
|
cf_TrayNotifyDelay = conf.common("TrayNotifyDelay").toInt(); |
|
|
|
|
cf_ShowTimestamp = conf.common("ShowTimestamp").toInt(); |
|
|
|
|
cf_TimestampFormat = conf.common("TimestampFormat"); |
|
|
|
|
cf_ManualKeepaliveEnabled = conf.common("ManualKeepaliveEnabled").toInt(); |
|
|
|
|
cf_ManualKeepalive = conf.common("ManualKeepalive").toInt(); |
|
|
|
|
cf_QuitMessage = conf.common("QuitMessage"); |
|
|
|
|
cf_Font = conf.common("Font"); |
|
|
|
|
cf_FontSize = conf.common("FontSize").toInt(); |
|
|
|
|