|
|
@ -107,7 +107,8 @@ options_imp::options_imp(QWidget *parent): |
|
|
|
checkShowSystray->setEnabled(false); |
|
|
|
checkShowSystray->setEnabled(false); |
|
|
|
} |
|
|
|
} |
|
|
|
#if !defined(Q_WS_X11) |
|
|
|
#if !defined(Q_WS_X11) |
|
|
|
checkUseMonoSystrayIcon->setVisible(false); |
|
|
|
label_trayIconStyle->setVisible(false); |
|
|
|
|
|
|
|
comboTrayIcon->setVisible(false); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
// Connect signals / slots
|
|
|
|
// Connect signals / slots
|
|
|
|
// General tab
|
|
|
|
// General tab
|
|
|
@ -135,7 +136,7 @@ options_imp::options_imp(QWidget *parent): |
|
|
|
connect(checkShowSplash, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton())); |
|
|
|
connect(checkShowSplash, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton())); |
|
|
|
connect(checkProgramExitConfirm, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton())); |
|
|
|
connect(checkProgramExitConfirm, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton())); |
|
|
|
connect(checkPreventFromSuspend, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton())); |
|
|
|
connect(checkPreventFromSuspend, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton())); |
|
|
|
connect(checkUseMonoSystrayIcon, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton())); |
|
|
|
connect(comboTrayIcon, SIGNAL(currentIndexChanged(int)), this, SLOT(enableApplyButton())); |
|
|
|
#if defined(Q_WS_X11) && !defined(QT_DBUS_LIB) |
|
|
|
#if defined(Q_WS_X11) && !defined(QT_DBUS_LIB) |
|
|
|
checkPreventFromSuspend->setDisabled(true); |
|
|
|
checkPreventFromSuspend->setDisabled(true); |
|
|
|
#endif |
|
|
|
#endif |
|
|
@ -327,7 +328,7 @@ void options_imp::saveOptions(){ |
|
|
|
pref.setLocale(locale); |
|
|
|
pref.setLocale(locale); |
|
|
|
pref.setAlternatingRowColors(checkAltRowColors->isChecked()); |
|
|
|
pref.setAlternatingRowColors(checkAltRowColors->isChecked()); |
|
|
|
pref.setSystrayIntegration(systrayIntegration()); |
|
|
|
pref.setSystrayIntegration(systrayIntegration()); |
|
|
|
pref.setUseMonochromeTrayIcon(checkUseMonoSystrayIcon->isChecked()); |
|
|
|
pref.setTrayIconStyle(TrayIcon::Style(comboTrayIcon->currentIndex())); |
|
|
|
pref.setCloseToTray(closeToTray()); |
|
|
|
pref.setCloseToTray(closeToTray()); |
|
|
|
pref.setMinimizeToTray(minimizeToTray()); |
|
|
|
pref.setMinimizeToTray(minimizeToTray()); |
|
|
|
pref.setStartMinimized(startMinimized()); |
|
|
|
pref.setStartMinimized(startMinimized()); |
|
|
@ -476,8 +477,8 @@ void options_imp::loadOptions(){ |
|
|
|
checkCloseToSystray->setChecked(pref.closeToTray()); |
|
|
|
checkCloseToSystray->setChecked(pref.closeToTray()); |
|
|
|
checkMinimizeToSysTray->setChecked(pref.minimizeToTray()); |
|
|
|
checkMinimizeToSysTray->setChecked(pref.minimizeToTray()); |
|
|
|
checkStartMinimized->setChecked(pref.startMinimized()); |
|
|
|
checkStartMinimized->setChecked(pref.startMinimized()); |
|
|
|
checkUseMonoSystrayIcon->setChecked(pref.useMonochromeTrayIcon()); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
comboTrayIcon->setCurrentIndex(pref.trayIconStyle()); |
|
|
|
checkProgramExitConfirm->setChecked(pref.confirmOnExit()); |
|
|
|
checkProgramExitConfirm->setChecked(pref.confirmOnExit()); |
|
|
|
checkPreventFromSuspend->setChecked(pref.preventFromSuspend()); |
|
|
|
checkPreventFromSuspend->setChecked(pref.preventFromSuspend()); |
|
|
|
// End General preferences
|
|
|
|
// End General preferences
|
|
|
@ -854,13 +855,13 @@ void options_imp::enableMaxConnecsLimitPerTorrent(bool checked){ |
|
|
|
void options_imp::enableSystrayOptions() { |
|
|
|
void options_imp::enableSystrayOptions() { |
|
|
|
checkCloseToSystray->setEnabled(true); |
|
|
|
checkCloseToSystray->setEnabled(true); |
|
|
|
checkMinimizeToSysTray->setEnabled(true); |
|
|
|
checkMinimizeToSysTray->setEnabled(true); |
|
|
|
checkUseMonoSystrayIcon->setEnabled(true); |
|
|
|
comboTrayIcon->setEnabled(true); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void options_imp::disableSystrayOptions() { |
|
|
|
void options_imp::disableSystrayOptions() { |
|
|
|
checkCloseToSystray->setEnabled(false); |
|
|
|
checkCloseToSystray->setEnabled(false); |
|
|
|
checkMinimizeToSysTray->setEnabled(false); |
|
|
|
checkMinimizeToSysTray->setEnabled(false); |
|
|
|
checkUseMonoSystrayIcon->setEnabled(false); |
|
|
|
comboTrayIcon->setEnabled(false); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void options_imp::setSystrayOptionsState(bool checked) { |
|
|
|
void options_imp::setSystrayOptionsState(bool checked) { |
|
|
|