diff --git a/Changelog b/Changelog index 36d650b20..a0cfe4b2e 100644 --- a/Changelog +++ b/Changelog @@ -6,6 +6,7 @@ - FEATURE: Append !.qB extension to incomplete files option (libtorrent >= v0.15 only) - FEATURE: Torrent files/folders can be renamed - COSMETIC: Use checkboxes to filter torrent content instead of comboboxes + - COSMETIC: Use alternating row colors in transfer list (set in program preferences) * Thu Dec 10 2009 - Christophe Dumez - v2.0.0 - FEATURE: Added program option to disable splash screen diff --git a/src/GUI.cpp b/src/GUI.cpp index 4a04fde68..1db41b5b8 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -724,7 +724,7 @@ void GUI::loadPreferences(bool configure_session) { } unsigned int new_refreshInterval = Preferences::getRefreshInterval(); transferList->setRefreshInterval(new_refreshInterval); - + transferList->setAlternatingRowColors(Preferences::useAlternatingRowColors()); // Queueing System if(Preferences::isQueueingSystemEnabled()) { if(!configure_session || !BTSession->isQueueingEnabled()) { diff --git a/src/options_imp.cpp b/src/options_imp.cpp index e58baf5b1..c093d4673 100644 --- a/src/options_imp.cpp +++ b/src/options_imp.cpp @@ -181,6 +181,7 @@ options_imp::options_imp(QWidget *parent):QDialog(parent){ connect(checkConfirmExit, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton())); connect(checkSpeedInTitle, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton())); connect(spinRefreshInterval, SIGNAL(valueChanged(QString)), this, SLOT(enableApplyButton())); + connect(checkAltRowColors, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton())); connect(checkNoSystray, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton())); connect(checkCloseToSystray, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton())); connect(checkMinimizeToSysTray, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton())); @@ -360,6 +361,7 @@ void options_imp::saveOptions(){ settings.setValue(QString::fromUtf8("ExitConfirm"), confirmOnExit()); settings.setValue(QString::fromUtf8("SpeedInTitleBar"), speedInTitleBar()); settings.setValue(QString::fromUtf8("RefreshInterval"), getRefreshInterval()); + settings.setValue(QString::fromUtf8("AlternatingRowColors"), checkAltRowColors->isChecked()); settings.setValue(QString::fromUtf8("SystrayEnabled"), systrayIntegration()); settings.setValue(QString::fromUtf8("CloseToTray"), closeToTray()); settings.setValue(QString::fromUtf8("MinimizeToTray"), minimizeToTray()); @@ -565,6 +567,7 @@ void options_imp::loadOptions(){ checkConfirmExit->setChecked(Preferences::confirmOnExit()); checkSpeedInTitle->setChecked(Preferences::speedInTitleBar()); spinRefreshInterval->setValue(Preferences::getRefreshInterval()); + checkAltRowColors->setChecked(Preferences::useAlternatingRowColors()); checkNoSystray->setChecked(!Preferences::systrayIntegration()); checkDisplayToolbar->setChecked(Preferences::isToolbarDisplayed()); checkNoSplash->setChecked(Preferences::isSlashScreenDisabled()); diff --git a/src/preferences.h b/src/preferences.h index c2c0d8a84..723ac8efb 100644 --- a/src/preferences.h +++ b/src/preferences.h @@ -64,6 +64,11 @@ public: return settings.value(QString::fromUtf8("Preferences/General/RefreshInterval"), 1500).toUInt(); } + static bool useAlternatingRowColors() { + QSettings settings("qBittorrent", "qBittorrent"); + return settings.value(QString::fromUtf8("Preferences/General/AlternatingRowColors"), true).toBool(); + } + static bool systrayIntegration() { QSettings settings("qBittorrent", "qBittorrent"); return settings.value(QString::fromUtf8("Preferences/General/SystrayEnabled"), true).toBool(); diff --git a/src/ui/options.ui b/src/ui/options.ui index 17ba75872..6aef088cc 100644 --- a/src/ui/options.ui +++ b/src/ui/options.ui @@ -235,15 +235,15 @@ 0 0 - 620 - 495 + 602 + 590 - + - User interface settings + User interface @@ -271,6 +271,22 @@ + + + + + 8 + true + + + + (Requires restart) + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + + + @@ -286,22 +302,6 @@ - - - - - 8 - true - - - - <b>Note:</b> Changes will be applied after qBittorrent is restarted. - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop - - - @@ -390,48 +390,159 @@ - - - - - Transfer list refresh interval: - - - - - - - 30 - - - 99999 - - - 1500 - - - - - - - ms - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - + + + Transfer list + + + + + + + + Refresh interval: + + + + + + + 30 + + + 99999 + + + 1500 + + + + + + + ms + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + Use alternating row colors + + + true + + + + + + + + 0 + 0 + + + + QGroupBox::title { +font-weight: normal; +margin-left: -2px; +} +QGroupBox { + border-width: 0; +} + + + Action on double click: + + + + + + + + Downloading: + + + + + + + + 0 + 0 + + + + 0 + + + + Start/Stop + + + + + Open folder + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Completed: + + + + + + + + Start/Stop + + + + + Open folder + + + + + + + + + + + @@ -485,138 +596,8 @@ - - - - - - - 0 - 0 - - - - Action on double click - - - - - - - - Downloading: - - - - - - - - 0 - 0 - - - - 0 - - - - Start/Stop - - - - - Open folder - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - - Completed: - - - - - - - - Start/Stop - - - - - Open folder - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - - - Qt::Vertical - - - - 20 - 40 - - - - - - - - - - Qt::Vertical - - - - 20 - 40 - - - - @@ -637,7 +618,7 @@ 0 - -27 + 0 644 504 @@ -2625,8 +2606,8 @@ QGroupBox { 0 0 - 452 - 192 + 620 + 495