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>
This commit is contained in:
Lubomir I. Ivanov 2013-07-13 17:02:06 +03:00 committed by Dirk Hohndel
parent fc84f8868d
commit 3076dc6d47
2 changed files with 5 additions and 2 deletions

View file

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