diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-06-07 12:57:35 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-06-07 12:57:35 -0300 |
commit | 24446f9c3ce3b48c59b2ceb212b7ac49eb6dbff7 (patch) | |
tree | af38eef1b92549ddb8479f2d18a5c0839a1d8d4c /qt-ui/models.h | |
parent | ebed836ee5d10659ae3d830704508f9c575181d3 (diff) | |
download | subsurface-24446f9c3ce3b48c59b2ceb212b7ac49eb6dbff7.tar.gz |
Edit the name of the Dive Computer via dialog.
The GTK version seems to be bugged on this, since the dialog
doesn't save the dive computer nickname that I setted, but
the Qt version shows less dive-computers than the GTK one on the
same dive. I want somebody to do a quick review of my code too. :)
I also plan to remove the 'OK' and 'Cancel' buttom, they seem to
be overrated on this dialog - fairly uneeded.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/models.h')
-rw-r--r-- | qt-ui/models.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/models.h b/qt-ui/models.h index c0625325f..7a32998ce 100644 --- a/qt-ui/models.h +++ b/qt-ui/models.h @@ -177,6 +177,8 @@ public: virtual int columnCount(const QModelIndex& parent = QModelIndex()) const; virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const; virtual int rowCount(const QModelIndex& parent = QModelIndex()) const; + virtual Qt::ItemFlags flags(const QModelIndex& index) const; + virtual bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole); void update(); private: int numRows; |