summaryrefslogtreecommitdiffstats
path: root/qt-ui/modeldelegates.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-12-11 21:44:05 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-12-12 03:26:39 +0100
commit0b5f9512efb8d861b3d935278f22d0cc5d6b8d4a (patch)
tree8d0a08e2411e45519eb9a6aed707c3b2db5300dd /qt-ui/modeldelegates.h
parentc5c44e3a829d25227f623bd0e6211a4ff5d91b69 (diff)
downloadsubsurface-0b5f9512efb8d861b3d935278f22d0cc5d6b8d4a.tar.gz
Fix TableWidget ( equipment ones ) on dark scheme.
This patch uses the class created by the previous patch to get rid of the CSS and be really desktop native. it fixes a lot of stuff in non-blue-styles and throws a lot of code away. <3 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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/qt-ui/modeldelegates.h b/qt-ui/modeldelegates.h
index 1aedf1bbf..013a1c17a 100644
--- a/qt-ui/modeldelegates.h
+++ b/qt-ui/modeldelegates.h
@@ -5,6 +5,12 @@
class QComboBox;
class QPainter;
+class DiveListDelegate : public QStyledItemDelegate{
+public:
+ DiveListDelegate(){}
+ QSize sizeHint ( const QStyleOptionViewItem & option, const QModelIndex & index ) const;
+};
+
class StarWidgetsDelegate : public QStyledItemDelegate {
Q_OBJECT
public: