forked from qt-creator/qt-creator
ManhattanStyle: Use QRectF instead of QRect for adjustment
Broken in 6f7a6282e59a82e4c7609c0090da05f5da1dda91 Change-Id: I752295af28494efe3eb59ef31b111a0079d47ff7 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
committed by
Tobias Hunger
parent
ca6a766314
commit
889a040366
@@ -503,7 +503,8 @@ void ManhattanStyle::drawPrimitive(PrimitiveElement element, const QStyleOption
|
|||||||
highlight.setAlphaF(0.3);
|
highlight.setAlphaF(0.3);
|
||||||
painter->setBrush(highlight);
|
painter->setBrush(highlight);
|
||||||
painter->setRenderHint(QPainter::Antialiasing);
|
painter->setRenderHint(QPainter::Antialiasing);
|
||||||
painter->drawRoundedRect(option->rect.adjusted(2.5, 2.5, -2.5, -2.5), 2, 2);
|
const QRectF rect = option->rect;
|
||||||
|
painter->drawRoundedRect(rect.adjusted(2.5, 2.5, -2.5, -2.5), 2, 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user