diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-11-30 07:55:58 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-11-30 07:55:58 -0800 |
commit | a268311a0b2e4cf910093c6190ee88e8e8998fe3 (patch) | |
tree | 98a6b6d03d598199cd9872e264b120ac2d8f8a0b /qt-ui/modeldelegates.cpp | |
parent | 0caaaf3d31b6a3fd062d67dc0d0671cad98757cc (diff) | |
parent | d4766a8cce9a7a873f23c29fa2ef7615961686e8 (diff) | |
download | subsurface-a268311a0b2e4cf910093c6190ee88e8e8998fe3.tar.gz |
Merge branch 'print' of github.com:neolit123/subsurface
Diffstat (limited to 'qt-ui/modeldelegates.cpp')
-rw-r--r-- | qt-ui/modeldelegates.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/qt-ui/modeldelegates.cpp b/qt-ui/modeldelegates.cpp index 2b86476e1..b4b24b266 100644 --- a/qt-ui/modeldelegates.cpp +++ b/qt-ui/modeldelegates.cpp @@ -329,14 +329,15 @@ void ProfilePrintDelegate::paint(QPainter *painter, const QStyleOptionViewItem & // grid color painter->setPen(QPen(QColor(0xff999999))); - // top line - if (row == 2 || row == 3 || row == 10 || col == 3 || col == 4) + // horizontal lines + if (row == 2 || row == 4 || row == 6) painter->drawLine(rect.topLeft(), rect.topRight()); - if (row > 1 && row < 10) { - // left line - draw always for these rows + if (row == 7) + painter->drawLine(rect.bottomLeft(), rect.bottomRight()); + // vertical lines + if (row > 1) { painter->drawLine(rect.topLeft(), rect.bottomLeft()); - // "fix" for missing (?) right line after col 5 - if (col > 5 || (col > 4 && row == 2)) + if (col == 4 || (col == 0 && row > 5)) painter->drawLine(rect.topRight(), rect.bottomRight()); } QStyledItemDelegate::paint(painter, option, index); |