aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/bookmarks
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@theqtcompany.com>2016-04-15 12:42:09 +0200
committerAlessandro Portale <alessandro.portale@theqtcompany.com>2016-04-29 12:57:34 +0000
commitcb6acf32f90c70a9fd3be88d831459d314bec893 (patch)
tree0d33fe037a0ef67511b1721bfa2d796e82005016 /src/plugins/bookmarks
parent5f53b956367af03e8ebe0842fcf71215ac6fd916 (diff)
Bookmarks: Fix a HighDPI off-by-1 issue in the Bookmarks view
Change-Id: I172d887234ac60ef8eba6c695582cfe41a45d9e9 Reviewed-by: Robert Loehning <robert.loehning@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/bookmarks')
-rw-r--r--src/plugins/bookmarks/bookmarkmanager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/bookmarks/bookmarkmanager.cpp b/src/plugins/bookmarks/bookmarkmanager.cpp
index ee92b9ab8e..0083466fef 100644
--- a/src/plugins/bookmarks/bookmarkmanager.cpp
+++ b/src/plugins/bookmarks/bookmarkmanager.cpp
@@ -202,8 +202,9 @@ void BookmarkDelegate::paint(QPainter *painter, const QStyleOptionViewItem &opti
painter->drawText(6, opt.rect.top() + fm.ascent() + fm.height() + 6, lineText);
// Separator lines
+ const QRectF innerRect = QRectF(opt.rect).adjusted(0.5, 0.5, -0.5, -0.5);
painter->setPen(QColor::fromRgb(150,150,150));
- painter->drawLine(0, opt.rect.bottom(), opt.rect.right(), opt.rect.bottom());
+ painter->drawLine(innerRect.bottomLeft(), innerRect.bottomRight());
painter->restore();
}