Test the CSS for styling the TableView

This is a test and I shouldn't be taken seriously.

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2013-05-02 19:27:36 -03:00 committed by Dirk Hohndel
parent f9c97ff97d
commit 82b1b04920
5 changed files with 99 additions and 8 deletions

View file

@ -1,12 +1,15 @@
#ifndef MODELDELEGATES_H
#define MODELDELEGATES_H
#include <QAbstractItemDelegate>
#include <QStyledItemDelegate>
class StarWidgetsDelegate : public QAbstractItemDelegate {
class StarWidgetsDelegate : public QStyledItemDelegate {
Q_OBJECT
public:
explicit StarWidgetsDelegate(QWidget* parent = 0);
virtual void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const;
virtual QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const;
private:
QWidget *parentWidget;
};
#endif