X-Git-Url: https://git.sven.stormbind.net/?a=blobdiff_plain;f=src%2Ftreedelegate.h;fp=src%2Ftreedelegate.h;h=bb05021ae555e04c03853582d6f77057a0f8f8ab;hb=d483bd8e6523c23c6f1d8908a2e0611c2bc9ff4f;hp=0000000000000000000000000000000000000000;hpb=7dfa3fe589d1722d49681f42cdb0bf1e6efb5223;p=sven%2Fvym.git diff --git a/src/treedelegate.h b/src/treedelegate.h new file mode 100644 index 0000000..bb05021 --- /dev/null +++ b/src/treedelegate.h @@ -0,0 +1,19 @@ +#ifndef TREEDELEGATE_H +#define TREEDELEGATE_H + +#include + +class TreeDelegate : public QStyledItemDelegate { + Q_OBJECT + public: + TreeDelegate(QObject *parent = 0); + QString displayText(const QVariant &value, const QLocale &locale) const; + void paint(QPainter *painter, const QStyleOptionViewItem &option, + const QModelIndex &index) const; + /* + QSize sizeHint(const QStyleOptionViewItem &option, + const QModelIndex &index ) const; + */ +}; + +#endif