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>
This commit is contained in:
Tomaz Canabrava 2013-05-22 14:11:49 -03:00
parent d6bee060af
commit fc4243eef0
3 changed files with 33 additions and 0 deletions

View file

@ -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