diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-12-11 21:44:05 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-12-12 03:26:39 +0100 |
commit | 0b5f9512efb8d861b3d935278f22d0cc5d6b8d4a (patch) | |
tree | 8d0a08e2411e45519eb9a6aed707c3b2db5300dd /qt-ui/modeldelegates.cpp | |
parent | c5c44e3a829d25227f623bd0e6211a4ff5d91b69 (diff) | |
download | subsurface-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.cpp')
-rw-r--r-- | qt-ui/modeldelegates.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qt-ui/modeldelegates.cpp b/qt-ui/modeldelegates.cpp index 6cb47945a..c3324ed72 100644 --- a/qt-ui/modeldelegates.cpp +++ b/qt-ui/modeldelegates.cpp @@ -19,6 +19,11 @@ #include <QStringListModel> #include <QApplication> +QSize DiveListDelegate::sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const +{ + return QSize(50,22); +} + // Gets the index of the model in the currentRow and column. // currCombo is defined below. #define IDX( XX ) mymodel->index(currCombo.currRow, XX) |