diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-05-02 19:27:36 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-05-02 16:56:13 -0700 |
commit | 82b1b04920fdd5882e0cbf28c9871c2ddd404af8 (patch) | |
tree | 964af6d2961b8fb2dc05ee68aeeea7d79fe53150 /qt-ui/modeldelegates.h | |
parent | f9c97ff97d072d6a4cb934a50427dc69382281e0 (diff) | |
download | subsurface-82b1b04920fdd5882e0cbf28c9871c2ddd404af8.tar.gz |
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>
Diffstat (limited to 'qt-ui/modeldelegates.h')
-rw-r--r-- | qt-ui/modeldelegates.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/qt-ui/modeldelegates.h b/qt-ui/modeldelegates.h index eacbb5a1e..5f90a3061 100644 --- a/qt-ui/modeldelegates.h +++ b/qt-ui/modeldelegates.h @@ -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 |