- COSMETIC: Use alternating row colors in transfer list (set in program preferences)

This commit is contained in:
Christophe Dumez
2009-12-22 14:06:36 +00:00
parent 50e620daf2
commit 6f6e453ae4
5 changed files with 186 additions and 196 deletions

View File

@@ -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();