summaryrefslogtreecommitdiffstats
path: root/qt-ui/profilegraphics.h
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2013-07-12 17:20:59 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-07-18 12:00:12 -0700
commit8ea849d0c29de3af33ca7a2354eeb30a34afe1f4 (patch)
tree539ecb31a5f974d37a7c1dd3b60868a2b94caec7 /qt-ui/profilegraphics.h
parentb722bf6931da3162b8c5c2608f477d9e9c4b5148 (diff)
downloadsubsurface-8ea849d0c29de3af33ca7a2354eeb30a34afe1f4.tar.gz
Profile: use a printMode flag in ProfileGraphicsView
When printing the profile there are certain features which we want different (or disabled). This includes font scale ignoring and showing a toolip. To achieve that we check for a printMode flag in ProfileGraphicsView which can be set using setPrintMode(bool). Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'qt-ui/profilegraphics.h')
-rw-r--r--qt-ui/profilegraphics.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/profilegraphics.h b/qt-ui/profilegraphics.h
index b6df52dec..a0c0161a3 100644
--- a/qt-ui/profilegraphics.h
+++ b/qt-ui/profilegraphics.h
@@ -92,6 +92,7 @@ public:
void plot(struct dive *d, bool forceRedraw = FALSE);
bool eventFilter(QObject* obj, QEvent* event);
void clear();
+ void setPrintMode(bool);
protected:
void resizeEvent(QResizeEvent *event);
@@ -134,6 +135,7 @@ private:
struct dive *dive;
struct divecomputer *diveDC;
int zoomLevel;
+ bool printMode;
// Top Level Items.
QGraphicsItem* profileGrid;