diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-05-22 12:20:00 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-05-22 12:20:00 -0300 |
commit | 75956f0f9149d7483ce0771df682d90e2fc9b923 (patch) | |
tree | 800d4366e6e7a21bdcb87e2cc3af8aaa7a23f407 /qt-ui/models.h | |
parent | 8cfb2aa237ede19d1eb23086905a010c908788f5 (diff) | |
download | subsurface-75956f0f9149d7483ce0771df682d90e2fc9b923.tar.gz |
Added basic editing functionality for Cylinders and Weigthsystems
This patch adds basic editing functionality for Cylinders and Weigthsystems,
it still doesn't use delegates to show the data to the user in a better
way, and it does not take in consideration user preferences yet, but
it's a starting point.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/models.h')
-rw-r--r-- | qt-ui/models.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/qt-ui/models.h b/qt-ui/models.h index 98f955bf6..ded612bb9 100644 --- a/qt-ui/models.h +++ b/qt-ui/models.h @@ -45,7 +45,8 @@ public: /*reimp*/ int columnCount(const QModelIndex& parent = QModelIndex()) const; /*reimp*/ QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const; /*reimp*/ int rowCount(const QModelIndex& parent = QModelIndex()) const; - /*reimp*/ Qt::ItemFlags flags(const QModelIndex& index) const; + /*reimp*/ Qt::ItemFlags flags(const QModelIndex& index) const; + /*reimp*/ bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole); void add(cylinder_t *cyl); void clear(); @@ -69,7 +70,8 @@ public: /*reimp*/ int columnCount(const QModelIndex& parent = QModelIndex()) const; /*reimp*/ QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const; /*reimp*/ int rowCount(const QModelIndex& parent = QModelIndex()) const; - /*reimp*/ Qt::ItemFlags flags(const QModelIndex& index) const; + /*reimp*/ Qt::ItemFlags flags(const QModelIndex& index) const; + /*reimp*/ bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole); void add(weightsystem_t *weight); void clear(); |