diff options
Diffstat (limited to 'qt-ui/modeldelegates.cpp')
-rw-r--r-- | qt-ui/modeldelegates.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/modeldelegates.cpp b/qt-ui/modeldelegates.cpp index c0b0f4dda..b11c4614d 100644 --- a/qt-ui/modeldelegates.cpp +++ b/qt-ui/modeldelegates.cpp @@ -353,6 +353,7 @@ void ProfilePrintDelegate::paint(QPainter *painter, const QStyleOptionViewItem & const int row = index.row(); const int col = index.column(); + painter->save(); // grid color painter->setPen(QPen(QColor(0xff999999))); // horizontal lines @@ -366,6 +367,7 @@ void ProfilePrintDelegate::paint(QPainter *painter, const QStyleOptionViewItem & if (col == 4 || (col == 0 && row > 5)) painter->drawLine(rect.topRight(), rect.bottomRight()); } + painter->restore(); QStyledItemDelegate::paint(painter, option, index); } |