diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-04-27 20:53:25 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-04-27 20:53:25 -0700 |
commit | 4179885da79d4d2ba0a4893331e162235765ad0f (patch) | |
tree | a01a38c68deab7ca159c11658fa053133c15254e /qt-ui/modeldelegates.h | |
parent | 4bb0cd8cef2bbbbe3df6fc3daa9ccca95f065038 (diff) | |
parent | 2f4d6bbe535a195046b4746fd3a771087ee4a6c4 (diff) | |
download | subsurface-4179885da79d4d2ba0a4893331e162235765ad0f.tar.gz |
Merge branch 'RenderStarsOnTable' of https://github.com/tcanabrava/subsurface into Qt
Diffstat (limited to 'qt-ui/modeldelegates.h')
-rw-r--r-- | qt-ui/modeldelegates.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/qt-ui/modeldelegates.h b/qt-ui/modeldelegates.h new file mode 100644 index 000000000..eacbb5a1e --- /dev/null +++ b/qt-ui/modeldelegates.h @@ -0,0 +1,12 @@ +#ifndef MODELDELEGATES_H +#define MODELDELEGATES_H + +#include <QAbstractItemDelegate> + +class StarWidgetsDelegate : public QAbstractItemDelegate { + Q_OBJECT +public: + virtual void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const; + virtual QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const; +}; +#endif |