forked from qt-creator/qt-creator
ManhattanStyle: HighDPI fix for ToolButton with menu
Off-by-1.5 Change-Id: I300b2ff66622443b2b20ddb49a9038417ad4d074 Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
This commit is contained in:
@@ -917,7 +917,8 @@ void ManhattanStyle::drawComplexControl(ComplexControl control, const QStyleOpti
|
||||
tool.rect = menuarea.adjusted(1, 1, -1, -1);
|
||||
if (mflags & (State_Sunken | State_On | State_Raised)) {
|
||||
painter->setPen(Qt::gray);
|
||||
painter->drawLine(tool.rect.topLeft(), tool.rect.bottomLeft());
|
||||
const QRectF lineRect = QRectF(tool.rect).adjusted(-0.5, 2.5, 0, -2.5);
|
||||
painter->drawLine(lineRect.topLeft(), lineRect.bottomLeft());
|
||||
if (mflags & (State_Sunken)) {
|
||||
QColor shade(0, 0, 0, 50);
|
||||
painter->fillRect(tool.rect.adjusted(0, -1, 1, 1), shade);
|
||||
|
Reference in New Issue
Block a user