Added sample delegate - commented out.

This commit is contained in:
Martin Rotter 2014-03-19 14:35:08 +01:00
parent 6dd85812ce
commit 6948599212

View File

@ -24,6 +24,26 @@
#include "core/feedsmodel.h"
#include "core/settings.h"
/*
#include <QStyledItemDelegate>
#include <QPainter>
class Del : public QStyledItemDelegate {
Q_OBJECT
protected:
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const {
painter->setBrush(Qt::SolidPattern);
painter->setPen(Qt::SolidLine);
QRect rc(option.rect);
rc.adjust(2, 2, -2, -2);
painter->fillRect(rc, Qt::gray);
painter->drawText(rc, "123", Qt::AlignCenter | Qt::AlignVCenter);
}
};
*/
class FeedsProxyModel;
class FeedsModelFeed;