mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Hook up most of the Preferences dialog
The imperial/metric super setting doesn't have any effect. But changing the individual units now works and is tracked. And causes the display to change after clicking "OK" (but not yet when clicking "Apply"). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
96f74d9939
commit
b947cc924f
5 changed files with 53 additions and 35 deletions
|
@ -62,7 +62,7 @@ class ProfileGraphicsView : public QGraphicsView
|
|||
Q_OBJECT
|
||||
public:
|
||||
ProfileGraphicsView(QWidget* parent = 0);
|
||||
void plot(struct dive *d);
|
||||
void plot(struct dive *d, bool forceRedraw = FALSE);
|
||||
bool eventFilter(QObject* obj, QEvent* event);
|
||||
void clear();
|
||||
|
||||
|
@ -72,6 +72,9 @@ protected:
|
|||
void wheelEvent(QWheelEvent* event);
|
||||
void showEvent(QShowEvent* event);
|
||||
|
||||
public Q_SLOTS:
|
||||
void refresh();
|
||||
|
||||
private:
|
||||
void plot_depth_profile();
|
||||
QGraphicsSimpleTextItem* plot_text(text_render_options_t *tro, const QPointF& pos, const QString &text, QGraphicsItem *parent = 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue