summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Keller <rainer.keller@nokia.com>2011-10-13 15:54:06 +0200
committerRainer Keller <rainer.keller@nokia.com>2011-10-13 16:03:03 +0200
commit419e409a4f8a0666c655f509aae2b5e0d07d1746 (patch)
treeeda491ad703a0d930ccbd1bce3ce6fc36b193395
parent6369bd1da71765b76b267bf623ed108e82656f51 (diff)
Draw better looking rounded rectangles
Done-with: aportale
-rw-r--r--src/other/deviceitem.cpp3
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);
}
}