diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-08-28 07:27:59 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-08-28 07:27:59 -0300 |
commit | cfd17116ebe24ab547a9d375c6c47a260d6d8294 (patch) | |
tree | 0eb46510bdd00a9c3d49b387c03b60ea45ed63c1 /qt-ui/diveplanner.cpp | |
parent | 65ab2369488a2526fbadd156ef92ab4fd1d1d04a (diff) | |
download | subsurface-cfd17116ebe24ab547a9d375c6c47a260d6d8294.tar.gz |
Added a 'remove' icon on the dive planner table.
Added a 'remove' icon on the dive planner table,
this makes the ui more consistent between the other
tables that also manages addition and removal of data.
the delete method is still unimplemented.
next - css.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/diveplanner.cpp')
-rw-r--r-- | qt-ui/diveplanner.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp index 00e522602..b6ddf518f 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -886,6 +886,11 @@ QVariant DivePlannerPointsModel::data(const QModelIndex& index, int role) const case DURATION: return p.time / 60; } } + if (role == Qt::DecorationRole){ + switch(index.column()){ + case REMOVE : return QIcon(":trash"); + } + } return QVariant(); } |