diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-05-22 14:11:49 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-05-22 14:11:49 -0300 |
commit | fc4243eef08b1b90241bdf048506826180d9d853 (patch) | |
tree | 8819f79f615d97b5d17e72a8641f74a0d490e407 /qt-ui/modeldelegates.h | |
parent | d6bee060afaaf54b731c1e27b130089ebb5a9e40 (diff) | |
download | subsurface-fc4243eef08b1b90241bdf048506826180d9d853.tar.gz |
Added a Delegate for editing Cylinders
Now when you edit 'Type', a drop-down list will appear
and will enable you to choose from it's contents.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/modeldelegates.h')
-rw-r--r-- | qt-ui/modeldelegates.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/qt-ui/modeldelegates.h b/qt-ui/modeldelegates.h index 5f90a3061..0a56d14d6 100644 --- a/qt-ui/modeldelegates.h +++ b/qt-ui/modeldelegates.h @@ -12,4 +12,12 @@ public: private: QWidget *parentWidget; }; + +class TankInfoDelegate : public QStyledItemDelegate{ + Q_OBJECT +public: + explicit TankInfoDelegate(QObject* parent = 0); + virtual QWidget* createEditor(QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const; +}; + #endif |