Commit adc3084b authored by Alessandro Portale's avatar Alessandro Portale

ManhattanStyle: HighDPI fix for ToolButton with menu

Off-by-1.5

Change-Id: I300b2ff66622443b2b20ddb49a9038417ad4d074
Reviewed-by: default avatarAlessandro Portale <alessandro.portale@theqtcompany.com>
parent 574ab3c0
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment