diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-03-09 22:32:16 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-04-12 18:19:07 +0300 |
commit | dd12bdaf94c1ebc5d32598151aa96da12e61c146 (patch) | |
tree | ce03750531ebcabdda7c656c28b6c9e9e73032f7 /qt-models/cylindermodel.cpp | |
parent | 992ad2fa2784d38c5dfe3cce4e35e00d27a5f533 (diff) | |
download | subsurface-dd12bdaf94c1ebc5d32598151aa96da12e61c146.tar.gz |
Dive site: add dive site list tab
Add a very simple tab-widget presenting the list of known dive sites.
The table is rendered using our custom "TableView".
The (mis)uses the "LocationInformationModel". It moves the items
to be displayed (delete, name, description, number of dives) to the
front and makes the others hidden.
Moreover, it was necessary to limit the geo-tag decoration role to
the name to avoid having the icon next to each column.
Make the trash-can icon active and the name and description editable.
This is modelled after the cylinders-table code.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/cylindermodel.cpp')
-rw-r--r-- | qt-models/cylindermodel.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/qt-models/cylindermodel.cpp b/qt-models/cylindermodel.cpp index 129f25a6c..9796907cf 100644 --- a/qt-models/cylindermodel.cpp +++ b/qt-models/cylindermodel.cpp @@ -29,7 +29,6 @@ QVariant CylindersModel::headerData(int section, Qt::Orientation orientation, in CylindersModel *CylindersModel::instance() { - static CylindersModel self; return &self; } |