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/lthemeengineproxystyle.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/lthemeengineproxystyle.cpp')
-rw-r--r-- | src-qt5/core/lumina-theme-engine/src/lthemeengine-style/lthemeengineproxystyle.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src-qt5/core/lumina-theme-engine/src/lthemeengine-style/lthemeengineproxystyle.cpp b/src-qt5/core/lumina-theme-engine/src/lthemeengine-style/lthemeengineproxystyle.cpp index 2c66144f..a560a36a 100644 --- a/src-qt5/core/lumina-theme-engine/src/lthemeengine-style/lthemeengineproxystyle.cpp +++ b/src-qt5/core/lumina-theme-engine/src/lthemeengine-style/lthemeengineproxystyle.cpp @@ -14,16 +14,12 @@ lthemeengineProxyStyle::~lthemeengineProxyStyle(){ int lthemeengineProxyStyle::styleHint(QStyle::StyleHint hint, const QStyleOption *option, const QWidget *widget, QStyleHintReturn *returnData) const{ if(hint == QStyle::SH_DialogButtonBox_ButtonsHaveIcons){ - if(m_dialogButtonsHaveIcons == Qt::Unchecked) - return 0; - else if(m_dialogButtonsHaveIcons == Qt::Checked) - return 1; + if(m_dialogButtonsHaveIcons == Qt::Unchecked){ return 0; } + else if(m_dialogButtonsHaveIcons == Qt::Checked){ return 1; } } else if(hint == QStyle::QStyle::SH_ItemView_ActivateItemOnSingleClick){ - if(m_activateItemOnSingleClick == Qt::Unchecked) - return 0; - else if(m_activateItemOnSingleClick == Qt::Checked) - return 1; + if(m_activateItemOnSingleClick == Qt::Unchecked){ return 0; } + else if(m_activateItemOnSingleClick == Qt::Checked){ return 1; } } return QProxyStyle::styleHint(hint, option, widget, returnData); } |