summaryrefslogtreecommitdiffstats
path: root/qt-ui/models.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-23 13:31:46 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-23 13:31:46 -0700
commitd273694954567319d26a162201efe0a76664c66a (patch)
tree926cb17b18bfc6ea6c1bdd1fcdbd9e3ba90120f5 /qt-ui/models.h
parent87d3cd523493e009737887528d2c4040c0280804 (diff)
downloadsubsurface-d273694954567319d26a162201efe0a76664c66a.tar.gz
Allow the CylindersModel delegate to pass data in without unit conversions
With this we should have tank editing mostly done. See #122 (it's not quite fixed, we need the equivalent code for weight systems) Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/models.h')
-rw-r--r--qt-ui/models.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/models.h b/qt-ui/models.h
index 038f400a7..556651ffe 100644
--- a/qt-ui/models.h
+++ b/qt-ui/models.h
@@ -51,6 +51,7 @@ public:
/*reimp*/ Qt::ItemFlags flags(const QModelIndex& index) const;
/*reimp*/ bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole);
+ void passInData(const QModelIndex& index, const QVariant& value);
void add();
void clear();
void update();