- COSMETIC: Improved style management

This commit is contained in:
Christophe Dumez
2010-01-31 17:30:17 +00:00
parent 3693ecdd30
commit 09c48539ad
6 changed files with 47 additions and 109 deletions

View File

@@ -53,9 +53,19 @@ public:
settings.setValue(QString::fromUtf8("Preferences/General/Locale"), locale);
}
static int getStyle() {
static QString getDefaultStyle() {
QSettings settings("qBittorrent", "qBittorrent");
return settings.value(QString::fromUtf8("Preferences/General/Style"), 0).toInt();
return settings.value(QString::fromUtf8("Preferences/General/DefaultStyle"), "").toString();
}
static void setDefaultStyle(QString style) {
QSettings settings("qBittorrent", "qBittorrent");
settings.setValue(QString::fromUtf8("Preferences/General/DefaultStyle"), style);
}
static QString getStyle() {
QSettings settings("qBittorrent", "qBittorrent");
return settings.value(QString::fromUtf8("Preferences/General/Style"), "default").toString();
}
static bool confirmOnExit() {