summaryrefslogtreecommitdiffstats
path: root/qt-ui/models.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-09-25 14:23:51 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-09-25 14:23:51 -0300
commit2c14f3aa3b44ef9475e5b38acb8bbaa029e662be (patch)
treed9d196d73bb3d714c26ffe330a2ec6cac9c452d7 /qt-ui/models.h
parentc805e2c9417476b8b73944f8e8ef8425b0741815 (diff)
downloadsubsurface-2c14f3aa3b44ef9475e5b38acb8bbaa029e662be.tar.gz
Added a 'changed' member on Cylinder/Weigth models to know when to Apply a change.
Added a 'changed' member on Cylinders and weigth models to mark when one was changed or not. Only the changed data should be inserted on the selected dives, so if the user changes the cylinders on a multi edit, there's no need ( and it will actually break things if we did that ) set the weigths too. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/models.h')
-rw-r--r--qt-ui/models.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/models.h b/qt-ui/models.h
index c60856478..2a9945aeb 100644
--- a/qt-ui/models.h
+++ b/qt-ui/models.h
@@ -86,6 +86,7 @@ public:
void update();
void setDive(struct dive *d);
cylinder_t *cylinderAt(const QModelIndex& index);
+ bool changed;
public slots:
void remove(const QModelIndex& index);
@@ -116,6 +117,7 @@ public:
void update();
void setDive(struct dive *d);
weightsystem_t *weightSystemAt(const QModelIndex& index);
+ bool changed;
public slots:
void remove(const QModelIndex& index);