summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/profilewidget2.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-09 13:09:52 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-09 13:12:29 -0700
commit76a8e83a541febe9b94ec84d3fd8320c86999265 (patch)
treeaa64d0b6de2e28c73026653479cab60f0b6f3d10 /qt-ui/profile/profilewidget2.h
parent2d77788cb2fe293b72cff7f51a200d90c928dcea (diff)
downloadsubsurface-76a8e83a541febe9b94ec84d3fd8320c86999265.tar.gz
Printing: scale fonts when printing
This seem to work better, but it misses a couple of items at times (for example the highest label on some of the axis). Needs lots more testing. 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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-ui/profile/profilewidget2.h b/qt-ui/profile/profilewidget2.h
index 2d9e921f0..bcde4a23a 100644
--- a/qt-ui/profile/profilewidget2.h
+++ b/qt-ui/profile/profilewidget2.h
@@ -71,9 +71,12 @@ public:
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);
+ bool getPrintMode();
bool isPointOutOfBoundaries(const QPointF &point) const;
bool isPlanner();
bool isAddOrPlanner();
+ double getFontPrintScale();
+ void setFontPrintScale(double scale);
State currentState;
public
@@ -174,6 +177,7 @@ private:
bool shouldCalculateMaxDepth;
int maxtime;
int maxdepth;
+ double fontPrintScale;
};
#endif // PROFILEWIDGET2_H