From fc4243eef08b1b90241bdf048506826180d9d853 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Wed, 22 May 2013 14:11:49 -0300 Subject: 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 --- qt-ui/modeldelegates.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'qt-ui/modeldelegates.h') 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 -- cgit v1.2.3-70-g09d2