diff options
author | Alessandro Portale <alessandro.portale@theqtcompany.com> | 2016-06-15 17:41:33 +0200 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2016-06-21 15:24:58 +0000 |
commit | 8588cf268f774dbbc242f0805669787c7bc310ac (patch) | |
tree | 2c900a225a35df9c5dfaffb6a425c28a3d8b4703 /src/plugins/projectexplorer/panelswidget.cpp | |
parent | eeadfbba8cd6534eb1daaa9a86458165a22e5364 (diff) | |
download | qt-creator-8588cf268f774dbbc242f0805669787c7bc310ac.tar.gz |
Utils: Replace Theme::widgetStyle with a flag
Theme::widgetStyle with its two possible return values makes less sense
than a bool flag. Especially since we already have several separate
theme flags for ui elements which might be "flat" or not.
Change-Id: Ic521bb58c04386b735b784079de05e521bc1f45f
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/panelswidget.cpp')
-rw-r--r-- | src/plugins/projectexplorer/panelswidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/panelswidget.cpp b/src/plugins/projectexplorer/panelswidget.cpp index ee587f889f..25b10b8a9a 100644 --- a/src/plugins/projectexplorer/panelswidget.cpp +++ b/src/plugins/projectexplorer/panelswidget.cpp @@ -85,7 +85,7 @@ void RootWidget::paintEvent(QPaintEvent *e) { QWidget::paintEvent(e); - if (creatorTheme()->widgetStyle() == Theme::StyleDefault) { + if (!creatorTheme()->flag(Theme::FlatToolBars)) { // draw separator line to the right of the settings panel QPainter painter(this); QColor light = StyleHelper::mergedColors( |