diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-06-05 15:41:52 +0900 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-06-05 16:40:27 +0900 |
commit | a737f595538584844041adda02bea5a5dae48d3d (patch) | |
tree | 3c0e1ca5be9075360167e53324235bf83f0ec821 /qt-ui/divelistview.h | |
parent | b533cf299fba1b2d9dd4737f109caf5aba042d7a (diff) | |
download | subsurface-a737f595538584844041adda02bea5a5dae48d3d.tar.gz |
First cut at selecting dives from the map
We'll want to enhance this: better logic for which dives are near the
selection, and it's probably best to have a "control-click" that adds
the dives to the selection rather than deselecting all the old ones.
But it's already useful.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/divelistview.h')
-rw-r--r-- | qt-ui/divelistview.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/divelistview.h b/qt-ui/divelistview.h index 2f3838c00..630f74e7f 100644 --- a/qt-ui/divelistview.h +++ b/qt-ui/divelistview.h @@ -26,6 +26,8 @@ public: void currentChanged(const QModelIndex& current, const QModelIndex& previous); void reload(DiveTripModel::Layout layout = DiveTripModel::TREE, bool forceSort = true); bool eventFilter(QObject* , QEvent* ); + void unselectDives(); + void selectDive(struct dive *, bool scrollto = false); public slots: void toggleColumnVisibilityByIndex(); |