From a737f595538584844041adda02bea5a5dae48d3d Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Wed, 5 Jun 2013 15:41:52 +0900 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-ui/divelistview.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qt-ui/divelistview.h') 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(); -- cgit v1.2.3-70-g09d2