mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
6aab69b298
commit
119950b6db
4 changed files with 18 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue