summaryrefslogtreecommitdiff
path: root/src/plugins/qmldesigner/components/navigator
diff options
context:
space:
mode:
authorThomas Hartmann <Thomas.Hartmann@theqtcompany.com>2016-07-20 11:31:30 +0200
committerAlessandro Portale <alessandro.portale@qt.io>2016-07-20 21:07:21 +0000
commit343d72fd3b74d1a95fbf07557f4462051f5c4432 (patch)
tree0d015fd51211d7c504807282abd530fe485b70da /src/plugins/qmldesigner/components/navigator
parent9750a82445d4db651ccaf98b37788951e168997b (diff)
downloadqt-creator-343d72fd3b74d1a95fbf07557f4462051f5c4432.tar.gz
QmlDesigner.Navigator: Styling fixes
The Fusion style does not play well with the custom background in our delegate. I simplified the background in our delegate and removed unrequired .css code. Change-Id: Ia3872d7df8b8c031b29199794e509933322c1d98 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src/plugins/qmldesigner/components/navigator')
-rw-r--r--src/plugins/qmldesigner/components/navigator/navigatortreeview.cpp18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/plugins/qmldesigner/components/navigator/navigatortreeview.cpp b/src/plugins/qmldesigner/components/navigator/navigatortreeview.cpp
index 94dab63cd7..c4b03fc5dd 100644
--- a/src/plugins/qmldesigner/components/navigator/navigatortreeview.cpp
+++ b/src/plugins/qmldesigner/components/navigator/navigatortreeview.cpp
@@ -170,23 +170,7 @@ NavigatorTreeView::NavigatorTreeView(QWidget *parent)
void NavigatorTreeView::drawSelectionBackground(QPainter *painter, const QStyleOption &option)
{
painter->save();
- if (Utils::creatorTheme()->flag(Utils::Theme::FlatToolBars)) {
- painter->setOpacity(0.5);
- painter->fillRect(option.rect, option.palette.color(QPalette::Highlight));
- } else {
- const QColor highlightColor = Utils::StyleHelper::notTooBrightHighlightColor();
- QLinearGradient gradient;
- gradient.setColorAt(0, highlightColor.lighter(130));
- gradient.setColorAt(1, highlightColor.darker(130));
- gradient.setStart(option.rect.topLeft());
- gradient.setFinalStop(option.rect.bottomLeft());
- painter->fillRect(option.rect, gradient);
- painter->setPen(highlightColor.lighter());
- const QRectF innerRect = QRectF(option.rect).adjusted(0.5, 0.5, -0.5, -0.5);
- painter->drawLine(innerRect.topLeft(), innerRect.topRight());
- painter->setPen(highlightColor.darker());
- painter->drawLine(innerRect.bottomLeft(), innerRect.bottomRight());
- }
+ painter->fillRect(option.rect, option.palette.color(QPalette::Highlight));
painter->restore();
}