diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2013-11-01 14:06:03 -0400 |
---|---|---|
committer | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2013-11-01 14:06:03 -0400 |
commit | 0e96c9f62e3a7030d9208f32e59390cb3fd20bbe (patch) | |
tree | 309804693d8c0b272343c8cd767a01baedb4e33f /qt-ui/maintab.h | |
parent | 23a193b0d1a94098ebcf1b5bafbc79ed879b5106 (diff) | |
download | subsurface-0e96c9f62e3a7030d9208f32e59390cb3fd20bbe.tar.gz |
Enable undo for the Edit mode on Added Dives.
This enables undo for the edit mode on added dives, it uses the
premade backup to fill the old dive with data. :)
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Diffstat (limited to 'qt-ui/maintab.h')
-rw-r--r-- | qt-ui/maintab.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qt-ui/maintab.h b/qt-ui/maintab.h index 1f586e70a..afc30a079 100644 --- a/qt-ui/maintab.h +++ b/qt-ui/maintab.h @@ -46,7 +46,8 @@ class MainTab : public QTabWidget { Q_OBJECT public: - enum EditMode { NONE, DIVE, TRIP, ADD, MANUALLY_ADDED_DIVE } editMode; + enum EditMode { NONE, DIVE, TRIP, ADD, MANUALLY_ADDED_DIVE }; + MainTab(QWidget *parent); void clearStats(); void clearInfo(); @@ -78,6 +79,7 @@ public slots: void enableEdition(EditMode newEditMode = NONE); private: + EditMode editMode; Ui::MainTab ui; WeightModel *weightModel; CylindersModel *cylindersModel; |