diff options
-rw-r--r-- | src/other/deviceitem.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/other/deviceitem.cpp b/src/other/deviceitem.cpp index 9bee2da..aa52402 100644 --- a/src/other/deviceitem.cpp +++ b/src/other/deviceitem.cpp @@ -510,8 +510,9 @@ void KeyButton::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, Q_UNUSED(option); Q_UNUSED(widget); if (mMouseOver) { + painter->setRenderHint(QPainter::Antialiasing); painter->setBrush(QColor(255, 255, 0, 50)); - painter->drawRoundedRect(boundingRect(), 5, 5); + painter->drawRoundedRect(boundingRect().adjusted(.5, .5, -1, -1), 5, 5); } } |