aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.h
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/maintab.h')
-rw-r--r--qt-ui/maintab.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/qt-ui/maintab.h b/qt-ui/maintab.h
index 1970bad1f..023a4de0c 100644
--- a/qt-ui/maintab.h
+++ b/qt-ui/maintab.h
@@ -81,6 +81,14 @@ private:
WeightModel *weightModel;
CylindersModel *cylindersModel;
QMap<dive*, NotesBackup> notesBackup;
+
+ /* since the multi-edition of the equipment is fairly more
+ * complex than a single item, because it involves a Qt
+ * Model to edit things, we are copying the first selected
+ * dive to this structure, making all editions there,
+ * then applying the changes on the other dives.*/
+ struct dive multiEditEquipmentPlaceholder;
+
enum { NONE, DIVE, TRIP, ADD } editMode;
Completers completers;
void enableEdition();