From bd10aa81d546ec293ad9a3e52fe1b433bb6754a5 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Sun, 5 Oct 2014 23:41:33 +0300 Subject: [PATCH] Style: Fix sunken style for menu again ea83fe74235e8fe8714467d530ebecb6f4e8ab5f apparently was not enough Change-Id: I54d471ae79496f42d85e5fe3d8239cb2cd902349 Reviewed-by: Jens Bache-Wiig --- src/plugins/coreplugin/manhattanstyle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/coreplugin/manhattanstyle.cpp b/src/plugins/coreplugin/manhattanstyle.cpp index 588eb3cc514..2da6ed284a1 100644 --- a/src/plugins/coreplugin/manhattanstyle.cpp +++ b/src/plugins/coreplugin/manhattanstyle.cpp @@ -638,7 +638,7 @@ void ManhattanStyle::drawControl(ControlElement element, const QStyleOption *opt painter->save(); if (const QStyleOptionMenuItem *mbi = qstyleoption_cast(option)) { QColor highlightOutline = Utils::StyleHelper::borderColor().lighter(120); - bool act = mbi->state & State_Sunken; + bool act = mbi->state & (State_Sunken | State_Selected); bool dis = !(mbi->state & State_Enabled); Utils::StyleHelper::menuGradient(painter, option->rect, option->rect); QStyleOptionMenuItem item = *mbi;