From b947cc924ff5c78ca7e0561d3ee3891207bea5e6 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 26 May 2013 11:33:45 -0700 Subject: 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 --- qt-ui/mainwindow.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'qt-ui/mainwindow.h') diff --git a/qt-ui/mainwindow.h b/qt-ui/mainwindow.h index a5b1a9b48..2366617c6 100644 --- a/qt-ui/mainwindow.h +++ b/qt-ui/mainwindow.h @@ -85,6 +85,9 @@ private Q_SLOTS: protected: void closeEvent(QCloseEvent *); +public Q_SLOTS: + void readSettings(); + private: Ui::MainWindow *ui; QAction *actionNextDive; @@ -92,7 +95,6 @@ private: QString filter(); bool askSaveChanges(); - void readSettings(); void writeSettings(); void redrawProfile(); void file_save(); -- cgit v1.2.3-70-g09d2