|
|
@ -142,6 +142,7 @@ options_imp::options_imp(QWidget *parent) |
|
|
|
connect(confirmDeletion, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton())); |
|
|
|
connect(confirmDeletion, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton())); |
|
|
|
connect(checkAltRowColors, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton())); |
|
|
|
connect(checkAltRowColors, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton())); |
|
|
|
connect(checkHideZero, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton())); |
|
|
|
connect(checkHideZero, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton())); |
|
|
|
|
|
|
|
connect(comboHideZero, SIGNAL(currentIndexChanged(int)), this, SLOT(enableApplyButton())); |
|
|
|
connect(checkShowSystray, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton())); |
|
|
|
connect(checkShowSystray, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton())); |
|
|
|
connect(checkCloseToSystray, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton())); |
|
|
|
connect(checkCloseToSystray, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton())); |
|
|
|
connect(checkMinimizeToSysTray, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton())); |
|
|
|
connect(checkMinimizeToSysTray, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton())); |
|
|
@ -394,6 +395,7 @@ void options_imp::saveOptions() |
|
|
|
pref->setConfirmTorrentDeletion(confirmDeletion->isChecked()); |
|
|
|
pref->setConfirmTorrentDeletion(confirmDeletion->isChecked()); |
|
|
|
pref->setAlternatingRowColors(checkAltRowColors->isChecked()); |
|
|
|
pref->setAlternatingRowColors(checkAltRowColors->isChecked()); |
|
|
|
pref->setHideZeroValues(checkHideZero->isChecked()); |
|
|
|
pref->setHideZeroValues(checkHideZero->isChecked()); |
|
|
|
|
|
|
|
pref->setHideZeroComboValues(comboHideZero->currentIndex()); |
|
|
|
pref->setSystrayIntegration(systrayIntegration()); |
|
|
|
pref->setSystrayIntegration(systrayIntegration()); |
|
|
|
pref->setTrayIconStyle(TrayIcon::Style(comboTrayIcon->currentIndex())); |
|
|
|
pref->setTrayIconStyle(TrayIcon::Style(comboTrayIcon->currentIndex())); |
|
|
|
pref->setCloseToTray(closeToTray()); |
|
|
|
pref->setCloseToTray(closeToTray()); |
|
|
@ -576,6 +578,7 @@ void options_imp::loadOptions() |
|
|
|
confirmDeletion->setChecked(pref->confirmTorrentDeletion()); |
|
|
|
confirmDeletion->setChecked(pref->confirmTorrentDeletion()); |
|
|
|
checkAltRowColors->setChecked(pref->useAlternatingRowColors()); |
|
|
|
checkAltRowColors->setChecked(pref->useAlternatingRowColors()); |
|
|
|
checkHideZero->setChecked(pref->getHideZeroValues()); |
|
|
|
checkHideZero->setChecked(pref->getHideZeroValues()); |
|
|
|
|
|
|
|
comboHideZero->setCurrentIndex(pref->getHideZeroComboValues()); |
|
|
|
|
|
|
|
|
|
|
|
checkShowSplash->setChecked(!pref->isSplashScreenDisabled()); |
|
|
|
checkShowSplash->setChecked(!pref->isSplashScreenDisabled()); |
|
|
|
checkStartMinimized->setChecked(pref->startMinimized()); |
|
|
|
checkStartMinimized->setChecked(pref->startMinimized()); |
|
|
|