From 3b0936eca3d143c8a75d16b5d7acd0b7d6b3cf1b Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Wed, 1 Jul 2015 19:31:56 -0300 Subject: Create a delegate to display custom data Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/modeldelegates.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'qt-ui/modeldelegates.h') diff --git a/qt-ui/modeldelegates.h b/qt-ui/modeldelegates.h index f501c5214..95701775a 100644 --- a/qt-ui/modeldelegates.h +++ b/qt-ui/modeldelegates.h @@ -129,4 +129,13 @@ public: virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const; virtual QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const; }; + +class LocationFilterDelegate : public QStyledItemDelegate { + Q_OBJECT +public: + LocationFilterDelegate(QObject *parent = 0); + void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const Q_DECL_OVERRIDE; + QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const Q_DECL_OVERRIDE; +}; + #endif // MODELDELEGATES_H -- cgit v1.2.3-70-g09d2