diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-07-13 17:02:06 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-07-18 12:00:12 -0700 |
commit | 3076dc6d47584b42200d050beefa26ac9df8d20c (patch) | |
tree | 38a603f9fe4ad15103ad33b278b9eafa7488aaed /qt-ui/profilegraphics.h | |
parent | fc84f8868d6cad30f6e250b3115c1ce1f574e1b5 (diff) | |
download | subsurface-3076dc6d47584b42200d050beefa26ac9df8d20c.tar.gz |
Profile: add the isGrayscale flag
setPrintMode() can now be used to set the
profile to be plotted in grayscale.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'qt-ui/profilegraphics.h')
-rw-r--r-- | qt-ui/profilegraphics.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/profilegraphics.h b/qt-ui/profilegraphics.h index a0c0161a3..04a057bdc 100644 --- a/qt-ui/profilegraphics.h +++ b/qt-ui/profilegraphics.h @@ -92,7 +92,7 @@ public: void plot(struct dive *d, bool forceRedraw = FALSE); bool eventFilter(QObject* obj, QEvent* event); void clear(); - void setPrintMode(bool); + void setPrintMode(bool mode, bool grayscale = FALSE); protected: void resizeEvent(QResizeEvent *event); @@ -136,6 +136,7 @@ private: struct divecomputer *diveDC; int zoomLevel; bool printMode; + bool isGrayscale; // Top Level Items. QGraphicsItem* profileGrid; |