- Moved "Transfer list refresh interval" to advanced settings

This commit is contained in:
Christophe Dumez
2010-01-31 16:25:04 +00:00
parent 77239db3c5
commit 1a4f638ff6
5 changed files with 25 additions and 62 deletions

View File

@@ -68,11 +68,6 @@ public:
return settings.value(QString::fromUtf8("Preferences/General/SpeedInTitleBar"), false).toBool();
}
static unsigned int getRefreshInterval() {
QSettings settings("qBittorrent", "qBittorrent");
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();
@@ -888,6 +883,16 @@ public:
settings.setValue(QString::fromUtf8("Preferences/Advanced/RecheckOnCompletion"), recheck);
}
static unsigned int getRefreshInterval() {
QSettings settings("qBittorrent", "qBittorrent");
return settings.value(QString::fromUtf8("Preferences/General/RefreshInterval"), 1500).toUInt();
}
static void setRefreshInterval(uint interval) {
QSettings settings("qBittorrent", "qBittorrent");
settings.setValue(QString::fromUtf8("Preferences/General/RefreshInterval"), interval);
}
};
#endif // PREFERENCES_H