aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-theme-engine/src/lthemeengine-style/plugin.cpp
diff options
context:
space:
mode:
authorq5sys <jt@obs-sec.com>2017-07-31 10:46:20 -0400
committerq5sys <jt@obs-sec.com>2017-07-31 10:46:20 -0400
commitea6f15b08ce9d4218c3fdda33a11c4b1869f6a50 (patch)
treeef9c881a35cd678a26d95f2fca5698a1e6870c4c /src-qt5/core/lumina-theme-engine/src/lthemeengine-style/plugin.cpp
parentMerge branch 'master' of https://github.com/trueos/lumina (diff)
downloadlumina-ea6f15b08ce9d4218c3fdda33a11c4b1869f6a50.tar.gz
lumina-ea6f15b08ce9d4218c3fdda33a11c4b1869f6a50.tar.bz2
lumina-ea6f15b08ce9d4218c3fdda33a11c4b1869f6a50.zip
bring bracket sanity to a wasteland of if statements
Diffstat (limited to 'src-qt5/core/lumina-theme-engine/src/lthemeengine-style/plugin.cpp')
-rw-r--r--src-qt5/core/lumina-theme-engine/src/lthemeengine-style/plugin.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/src-qt5/core/lumina-theme-engine/src/lthemeengine-style/plugin.cpp b/src-qt5/core/lumina-theme-engine/src/lthemeengine-style/plugin.cpp
index fb9e5fb2..31c59a0c 100644
--- a/src-qt5/core/lumina-theme-engine/src/lthemeengine-style/plugin.cpp
+++ b/src-qt5/core/lumina-theme-engine/src/lthemeengine-style/plugin.cpp
@@ -13,15 +13,13 @@ public:
};
QStyle *lthemeengineStylePlugin::create(const QString &key){
- if (key == "lthemeengine-style")
- {
- QSettings settings(lthemeengine::configFile(), QSettings::IniFormat);
- QString style = settings.value("Appearance/style", "Fusion").toString();
- if(key == style || !QStyleFactory::keys().contains(style))
- style = "Fusion";
- return new lthemeengineProxyStyle(style);
+ if (key == "lthemeengine-style"){
+ QSettings settings(lthemeengine::configFile(), QSettings::IniFormat);
+ QString style = settings.value("Appearance/style", "Fusion").toString();
+ if(key == style || !QStyleFactory::keys().contains(style)){ style = "Fusion"; }
+ return new lthemeengineProxyStyle(style);
}
- return 0;
+ return 0;
}
#include "plugin.moc"
bgstack15