|
|
@ -34,6 +34,7 @@ CSettingsDlg::CSettingsDlg(QWidget* parent):QDialog(parent,Qt::Dialog) |
|
|
|
connect(DialogButtons, SIGNAL( rejected() ), this, SLOT( OnCancel() ) ); |
|
|
|
connect(DialogButtons, SIGNAL( rejected() ), this, SLOT( OnCancel() ) ); |
|
|
|
connect(DialogButtons, SIGNAL( clicked(QAbstractButton*)), this, SLOT(OnOtherButton(QAbstractButton*))); |
|
|
|
connect(DialogButtons, SIGNAL( clicked(QAbstractButton*)), this, SLOT(OnOtherButton(QAbstractButton*))); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
connect(CheckBox_ShowSysTrayIcon, SIGNAL( toggled(bool) ), CheckBox_CloseToTray, SLOT( setEnabled(bool) ) ); |
|
|
|
connect(CheckBox_ShowSysTrayIcon, SIGNAL( toggled(bool) ), CheckBox_MinimizeTray, SLOT( setEnabled(bool) ) ); |
|
|
|
connect(CheckBox_ShowSysTrayIcon, SIGNAL( toggled(bool) ), CheckBox_MinimizeTray, SLOT( setEnabled(bool) ) ); |
|
|
|
connect(CheckBox_OpenLast, SIGNAL( toggled(bool) ), CheckBox_RememberLastKey, SLOT( setEnabled(bool) ) ); |
|
|
|
connect(CheckBox_OpenLast, SIGNAL( toggled(bool) ), CheckBox_RememberLastKey, SLOT( setEnabled(bool) ) ); |
|
|
|
connect(CheckBox_OpenLast, SIGNAL( toggled(bool) ), CheckBox_StartMinimized, SLOT( setEnabled(bool) ) ); |
|
|
|
connect(CheckBox_OpenLast, SIGNAL( toggled(bool) ), CheckBox_StartMinimized, SLOT( setEnabled(bool) ) ); |
|
|
@ -84,6 +85,7 @@ CSettingsDlg::CSettingsDlg(QWidget* parent):QDialog(parent,Qt::Dialog) |
|
|
|
CheckBox_OpenLast->setChecked(config->openLastFile()); |
|
|
|
CheckBox_OpenLast->setChecked(config->openLastFile()); |
|
|
|
CheckBox_RememberLastKey->setChecked(config->rememberLastKey()); |
|
|
|
CheckBox_RememberLastKey->setChecked(config->rememberLastKey()); |
|
|
|
CheckBox_ShowSysTrayIcon->setChecked(config->showSysTrayIcon()); |
|
|
|
CheckBox_ShowSysTrayIcon->setChecked(config->showSysTrayIcon()); |
|
|
|
|
|
|
|
CheckBox_CloseToTray->setChecked(config->minimizeToTray()); |
|
|
|
CheckBox_MinimizeTray->setChecked(config->minimizeTray()); |
|
|
|
CheckBox_MinimizeTray->setChecked(config->minimizeTray()); |
|
|
|
CheckBox_StartMinimized->setChecked(config->startMinimized()); |
|
|
|
CheckBox_StartMinimized->setChecked(config->startMinimized()); |
|
|
|
CheckBox_StartLocked->setChecked(config->startLocked()); |
|
|
|
CheckBox_StartLocked->setChecked(config->startLocked()); |
|
|
@ -237,6 +239,7 @@ void CSettingsDlg::apply(){ |
|
|
|
|
|
|
|
|
|
|
|
//General (1)
|
|
|
|
//General (1)
|
|
|
|
config->setShowSysTrayIcon(CheckBox_ShowSysTrayIcon->isChecked()); |
|
|
|
config->setShowSysTrayIcon(CheckBox_ShowSysTrayIcon->isChecked()); |
|
|
|
|
|
|
|
config->setMinimizeToTray(CheckBox_CloseToTray->isChecked()); |
|
|
|
config->setMinimizeTray(CheckBox_MinimizeTray->isChecked()); |
|
|
|
config->setMinimizeTray(CheckBox_MinimizeTray->isChecked()); |
|
|
|
config->setStartMinimized(CheckBox_StartMinimized->isChecked()); |
|
|
|
config->setStartMinimized(CheckBox_StartMinimized->isChecked()); |
|
|
|
config->setStartLocked(CheckBox_StartLocked->isChecked()); |
|
|
|
config->setStartLocked(CheckBox_StartLocked->isChecked()); |
|
|
|