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>
This commit is contained in:
Dirk Hohndel 2014-07-02 22:15:08 -07:00
parent 66870add77
commit a86aca0378
2 changed files with 25 additions and 39 deletions

View file

@ -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);