diff options
author | Andreas Loibl <andreas@andreas-loibl.de> | 2011-03-17 05:07:10 +0100 |
---|---|---|
committer | Andreas Loibl <andreas@andreas-loibl.de> | 2011-03-17 05:07:10 +0100 |
commit | 00286a5db286e21a766b6af057052dc5d17561ad (patch) | |
tree | 7232dadf6dc3570705c3104fe0c000f480c7a0ee /listdelegate.h | |
download | acritoxinstaller-00286a5db286e21a766b6af057052dc5d17561ad.zip acritoxinstaller-00286a5db286e21a766b6af057052dc5d17561ad.tar.gz |
Initial commit
Diffstat (limited to 'listdelegate.h')
-rw-r--r-- | listdelegate.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/listdelegate.h b/listdelegate.h new file mode 100644 index 0000000..d364b04 --- /dev/null +++ b/listdelegate.h @@ -0,0 +1,16 @@ +#ifndef LISTDELEGATE_H +#define LISTDELEGATE_H + +#include <QStyledItemDelegate> + +class ListDelegate : public QStyledItemDelegate +{ + Q_OBJECT +public: + ListDelegate(QObject *parent = 0); + void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const; + QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const; + +}; + +#endif |