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>
This commit is contained in:
Dirk Hohndel 2013-05-23 13:31:46 -07:00
parent 87d3cd5234
commit d273694954
3 changed files with 27 additions and 4 deletions

View file

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