summaryrefslogtreecommitdiffstats
path: root/qt-ui/modeldelegates.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-22 10:22:08 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-22 10:22:08 -0700
commit9c3b512701c59955350f317eb6d19e6fdc93f546 (patch)
treee52e2cfd54e54f814f01aab5a99c9c631df1eda3 /qt-ui/modeldelegates.h
parent56c58bdd24451352e1f2a538c145f865b2546ac2 (diff)
parentf73660cc0916bd52adfeaeb97c836176431b7d97 (diff)
downloadsubsurface-9c3b512701c59955350f317eb6d19e6fdc93f546.tar.gz
Merge branch 'comboBoxDelegate' of https://github.com/tcanabrava/subsurface
Diffstat (limited to 'qt-ui/modeldelegates.h')
-rw-r--r--qt-ui/modeldelegates.h8
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