diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-03-11 22:19:17 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-03-11 22:19:17 +0100 |
commit | 46f93311afc9f1e2afc306f63cee0e4f462758e2 (patch) | |
tree | cc945d66e6ca5e68c43b354d3f8f6d6e70cf5326 /gui/instancedelegate.h | |
parent | 36396f7c6aca9fcc61c8620e10c31ed2c8999ebd (diff) | |
download | MultiMC-46f93311afc9f1e2afc306f63cee0e4f462758e2.tar MultiMC-46f93311afc9f1e2afc306f63cee0e4f462758e2.tar.gz MultiMC-46f93311afc9f1e2afc306f63cee0e4f462758e2.tar.lz MultiMC-46f93311afc9f1e2afc306f63cee0e4f462758e2.tar.xz MultiMC-46f93311afc9f1e2afc306f63cee0e4f462758e2.zip |
Instance view, model, delegate.
Diffstat (limited to 'gui/instancedelegate.h')
-rw-r--r-- | gui/instancedelegate.h | 12 |
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 |