summaryrefslogtreecommitdiffstats
path: root/gui/instancedelegate.h
diff options
context:
space:
mode:
Diffstat (limited to 'gui/instancedelegate.h')
-rw-r--r--gui/instancedelegate.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/gui/instancedelegate.h b/gui/instancedelegate.h
new file mode 100644
index 00000000..c80f95a5
--- /dev/null
+++ b/gui/instancedelegate.h
@@ -0,0 +1,12 @@
+#pragma once
+
+#include <QStyledItemDelegate>
+
+class ListViewDelegate : public QStyledItemDelegate
+{
+public:
+ explicit ListViewDelegate ( QObject* parent = 0 );
+protected:
+ void paint ( QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index ) const;
+ QSize sizeHint ( const QStyleOptionViewItem & option, const QModelIndex & index ) const;
+}; \ No newline at end of file