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>
This commit is contained in:
Lubomir I. Ivanov 2013-07-12 17:20:59 +03:00 committed by Dirk Hohndel
parent b722bf6931
commit 8ea849d0c2
2 changed files with 12 additions and 1 deletions

View file

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