mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-10 15:22:30 +01:00
Added sample delegate - commented out.
This commit is contained in:
parent
6dd85812ce
commit
6948599212
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user