diff options
author | q5sys <jt@obs-sec.com> | 2017-07-31 10:46:20 -0400 |
---|---|---|
committer | q5sys <jt@obs-sec.com> | 2017-07-31 10:46:20 -0400 |
commit | ea6f15b08ce9d4218c3fdda33a11c4b1869f6a50 (patch) | |
tree | ef9c881a35cd678a26d95f2fca5698a1e6870c4c /src-qt5/core/lumina-theme-engine/src/lthemeengine-style/plugin.cpp | |
parent | Merge branch 'master' of https://github.com/trueos/lumina (diff) | |
download | lumina-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.cpp | 14 |
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" |