summaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-02 22:15:08 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-03 09:37:55 -0700
commita86aca037843167b26726926dbf2aebe0513afba (patch)
treea8e6b45f944fddec133847e089a249bae1bbc9f0 /qt-ui/maintab.h
parent66870add77e62b95d15cc6a8e76838cc0462a77f (diff)
downloadsubsurface-a86aca037843167b26726926dbf2aebe0513afba.tar.gz
UI restructure: only switch to edit mode if user made change
With this patch a simple click into the main tab does not start editing mode. Only once a value is modified do we show the message box and disable the other widgets. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.h')
-rw-r--r--qt-ui/maintab.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/maintab.h b/qt-ui/maintab.h
index 9ecd3fd10..3eb5596fa 100644
--- a/qt-ui/maintab.h
+++ b/qt-ui/maintab.h
@@ -35,7 +35,8 @@ public:
DIVE,
TRIP,
ADD,
- MANUALLY_ADDED_DIVE
+ MANUALLY_ADDED_DIVE,
+ IGNORE
};
MainTab(QWidget *parent);
@@ -44,7 +45,6 @@ public:
void clearInfo();
void clearEquipment();
void reload();
- bool eventFilter(QObject *, QEvent *);
void initialUiSetup();
bool isEditing();
void updateCoordinatesText(qreal lat, qreal lon);