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 <neolit123@gmail.com>
This commit is contained in:
Lubomir I. Ivanov 2013-11-30 17:35:55 +02:00
parent d439d381ca
commit 526985d6e5

View file

@ -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);
}