aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt
diff options
context:
space:
mode:
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2012-08-06 20:44:33 +0000
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2012-08-06 20:44:33 +0000
commitd936a6efc78f979f131c689dc16eb7f1108e291a (patch)
treec1ffc248fe6dc67d7897c7a4c4d24da16596ca1b /ui/qt
parentfcf9dc9866ed7cfea33bae78a3bc0bb0389a5e7a (diff)
Apparently QPointFs draw on center. Offset them in order to avoid
gratuitous antialiasing. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@44284 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'ui/qt')
-rw-r--r--ui/qt/sparkline_delegate.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/qt/sparkline_delegate.cpp b/ui/qt/sparkline_delegate.cpp
index 662f363267..d36d38a951 100644
--- a/ui/qt/sparkline_delegate.cpp
+++ b/ui/qt/sparkline_delegate.cpp
@@ -41,9 +41,9 @@ void SparkLineDelegate::paint(QPainter *painter, const QStyleOptionViewItem &opt
painter->save();
painter->setRenderHint(QPainter::Antialiasing, true);
- painter->translate(option.rect.x() + SL_MARGIN, option.rect.y() + SL_MARGIN);
+ painter->translate(option.rect.x() + SL_MARGIN + 0.5, option.rect.y() + SL_MARGIN + 0.5);
- // XXX Handle disabled
+ // XXX Handle disabled and Windows
if (option.state & QStyle::State_Selected) {
painter->setPen(option.palette.color(QPalette::HighlightedText));
} else {