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/models.cpp | |
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/models.cpp')
-rw-r--r-- | qt-ui/models.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp index 68f575ec8..061ffe418 100644 --- a/qt-ui/models.cpp +++ b/qt-ui/models.cpp @@ -7,6 +7,8 @@ #include "models.h" #include <QCoreApplication> #include <QDebug> +#include <QColor> +#include <QBrush> extern struct tank_info tank_info[100]; @@ -598,9 +600,6 @@ QVariant DiveTripModel::data(const QModelIndex& index, int role) const if (!index.isValid()) return QVariant(); - if (role != Qt::DisplayRole) - return QVariant(); - TreeItemDT* item = static_cast<TreeItemDT*>(index.internalPointer()); return item->data(index.column(), role); |