diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-07-09 11:19:08 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-09 11:19:08 -0700 |
commit | 2d77788cb2fe293b72cff7f51a200d90c928dcea (patch) | |
tree | 37b7f4f9202430b0f2f04f8262a18ce7a69ddbeb /qt-ui/profile/profilewidget2.h | |
parent | 99859d9a07d06ff080b52bfe5af1861d4ccfa6d3 (diff) | |
download | subsurface-2d77788cb2fe293b72cff7f51a200d90c928dcea.tar.gz |
Printing: force redrawing of the profile
If the first dive we end up rendering is the dive currently shown, the
info overlay would end up being printed which looks really silly.
See #590
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/profilewidget2.h')
-rw-r--r-- | qt-ui/profile/profilewidget2.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/qt-ui/profile/profilewidget2.h b/qt-ui/profile/profilewidget2.h index 6ed132b38..2d9e921f0 100644 --- a/qt-ui/profile/profilewidget2.h +++ b/qt-ui/profile/profilewidget2.h @@ -67,7 +67,7 @@ public: }; ProfileWidget2(QWidget *parent = 0); - void plotDive(struct dive *d = 0); + void plotDive(struct dive *d = 0, bool force = false); virtual bool eventFilter(QObject *, QEvent *); void setupItem(AbstractProfilePolygonItem *item, DiveCartesianAxis *hAxis, DiveCartesianAxis *vAxis, DivePlotDataModel *model, int vData, int hData, int zValue); void setPrintMode(bool mode, bool grayscale = false); @@ -135,7 +135,6 @@ private: QString backgroundFile; ToolTipItem *toolTipItem; bool isPlotZoomed; - bool forceReplot; // All those here should probably be merged into one structure, // So it's esyer to replicate for more dives later. // In the meantime, keep it here. |