summaryrefslogtreecommitdiffstats
path: root/qt-ui/models.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-22 12:20:00 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-22 12:20:00 -0300
commit75956f0f9149d7483ce0771df682d90e2fc9b923 (patch)
tree800d4366e6e7a21bdcb87e2cc3af8aaa7a23f407 /qt-ui/models.h
parent8cfb2aa237ede19d1eb23086905a010c908788f5 (diff)
downloadsubsurface-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.h6
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();