summaryrefslogtreecommitdiffstats
path: root/qt-ui/modeldelegates.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-02 17:01:35 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-02 17:02:55 -0700
commitff2ce399702d3a487316bfcc4b1fff01dbb8d309 (patch)
tree709b497e1981873b5301c68c0a906b874b7dd635 /qt-ui/modeldelegates.h
parent021ef8ad09295a0ad4b5a3450a651637eea8672d (diff)
parent696c9ccacd24392ea63477c5ec8a25d6649aedf7 (diff)
downloadsubsurface-ff2ce399702d3a487316bfcc4b1fff01dbb8d309.tar.gz
Merge branch 'tomaz-css' into Qt
Tomaz' code does a much better job of shading the dive list! Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/modeldelegates.h')
-rw-r--r--qt-ui/modeldelegates.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/qt-ui/modeldelegates.h b/qt-ui/modeldelegates.h
index eacbb5a1e..5f90a3061 100644
--- a/qt-ui/modeldelegates.h
+++ b/qt-ui/modeldelegates.h
@@ -1,12 +1,15 @@
#ifndef MODELDELEGATES_H
#define MODELDELEGATES_H
-#include <QAbstractItemDelegate>
+#include <QStyledItemDelegate>
-class StarWidgetsDelegate : public QAbstractItemDelegate {
+class StarWidgetsDelegate : public QStyledItemDelegate {
Q_OBJECT
public:
+ explicit StarWidgetsDelegate(QWidget* parent = 0);
virtual void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const;
virtual QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const;
+private:
+ QWidget *parentWidget;
};
#endif