summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/profilewidget2.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-05-21 14:24:19 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-05-22 09:05:30 +0900
commit119950b6dbc47578163fe167151e9dde5ff71427 (patch)
tree26eba2bbad8d57c141eb84ee0363f9d3420fde91 /qt-ui/profile/profilewidget2.h
parent6aab69b2989e7f61b6adc2f0bcff69ca2bd5c7df (diff)
downloadsubsurface-119950b6dbc47578163fe167151e9dde5ff71427.tar.gz
Move settings of the Ruler to the Ruler.
As with any other graphics object, the settings for the ruler should be managed by the ruler, clearing up the Profile logic and making the code easier to read. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/profilewidget2.h')
-rw-r--r--qt-ui/profile/profilewidget2.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/profile/profilewidget2.h b/qt-ui/profile/profilewidget2.h
index 4517cc144..a5d9eed27 100644
--- a/qt-ui/profile/profilewidget2.h
+++ b/qt-ui/profile/profilewidget2.h
@@ -68,6 +68,7 @@ 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);
+ State currentState;
public
slots: // Necessary to call from QAction's signals.
@@ -98,7 +99,6 @@ private: /*methods*/
private:
DivePlotDataModel *dataModel;
- State currentState;
int zoomLevel;
qreal zoomFactor;
DivePixmapItem *background;