diff options
Diffstat (limited to 'qt-ui/profilegraphics.cpp')
-rw-r--r-- | qt-ui/profilegraphics.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qt-ui/profilegraphics.cpp b/qt-ui/profilegraphics.cpp index 1fe3fbe88..98f01db10 100644 --- a/qt-ui/profilegraphics.cpp +++ b/qt-ui/profilegraphics.cpp @@ -47,6 +47,7 @@ extern int evn_used; ProfileGraphicsView::ProfileGraphicsView(QWidget* parent) : QGraphicsView(parent), toolTip(0) , dive(0), diveDC(0) { printMode = false; + isGrayscale = false; gc.printer = false; fill_profile_color(); setScene(new QGraphicsScene()); @@ -190,9 +191,10 @@ void ProfileGraphicsView::refresh() plot(current_dive, TRUE); } -void ProfileGraphicsView::setPrintMode(bool mode) +void ProfileGraphicsView::setPrintMode(bool mode, bool grayscale) { printMode = mode; + isGrayscale = grayscale; } void ProfileGraphicsView::plot(struct dive *d, bool forceRedraw) |