forked from qt-creator/qt-creator
Style: Fix sunken style for menu again
ea83fe7423 apparently was not enough
Change-Id: I54d471ae79496f42d85e5fe3d8239cb2cd902349
Reviewed-by: Jens Bache-Wiig <jensbw@gmail.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
d3942a50a9
commit
bd10aa81d5
@@ -638,7 +638,7 @@ void ManhattanStyle::drawControl(ControlElement element, const QStyleOption *opt
|
||||
painter->save();
|
||||
if (const QStyleOptionMenuItem *mbi = qstyleoption_cast<const QStyleOptionMenuItem *>(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;
|
||||
|
||||
Reference in New Issue
Block a user