From 526985d6e57a1d58a97495c84b4cff814b81af3a Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Sat, 30 Nov 2013 17:35:55 +0200 Subject: Print: fix missing vertical line at the last column There was a line missing in the right-most column wrapping the table for the profile print. Signed-off-by: Lubomir I. Ivanov --- qt-ui/modeldelegates.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'qt-ui/modeldelegates.cpp') diff --git a/qt-ui/modeldelegates.cpp b/qt-ui/modeldelegates.cpp index 7aa164723..b4b24b266 100644 --- a/qt-ui/modeldelegates.cpp +++ b/qt-ui/modeldelegates.cpp @@ -335,7 +335,10 @@ void ProfilePrintDelegate::paint(QPainter *painter, const QStyleOptionViewItem & if (row == 7) painter->drawLine(rect.bottomLeft(), rect.bottomRight()); // vertical lines - if (row > 1) + if (row > 1) { painter->drawLine(rect.topLeft(), rect.bottomLeft()); + if (col == 4 || (col == 0 && row > 5)) + painter->drawLine(rect.topRight(), rect.bottomRight()); + } QStyledItemDelegate::paint(painter, option, index); } -- cgit v1.2.3-70-g09d2