diff options
Diffstat (limited to 'qt-ui/modeldelegates.h')
-rw-r--r-- | qt-ui/modeldelegates.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/qt-ui/modeldelegates.h b/qt-ui/modeldelegates.h new file mode 100644 index 000000000..5f90a3061 --- /dev/null +++ b/qt-ui/modeldelegates.h @@ -0,0 +1,15 @@ +#ifndef MODELDELEGATES_H +#define MODELDELEGATES_H + +#include <QStyledItemDelegate> + +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 |