From 69516c37ec076c20a41e747e83e01ce429729ec7 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 21 Dec 2019 20:41:06 +0100 Subject: mobile/divelist: select dive after swipe After swiping through the dive list, select the currently visible dive. Thus, the dive is highlighted in the overview pane. The connection with the QMLManager feels atrocious, but I would prefer to have as little logic in QML as possible. Signed-off-by: Berthold Stoeger --- mobile-widgets/qmlmanager.h | 1 + 1 file changed, 1 insertion(+) (limited to 'mobile-widgets/qmlmanager.h') diff --git a/mobile-widgets/qmlmanager.h b/mobile-widgets/qmlmanager.h index 5a3662bfb..c5d480283 100644 --- a/mobile-widgets/qmlmanager.h +++ b/mobile-widgets/qmlmanager.h @@ -107,6 +107,7 @@ public: Q_INVOKABLE void setGitLocalOnly(const bool &value); Q_INVOKABLE void setFilter(const QString filterText, int mode); Q_INVOKABLE void selectRow(int row); + Q_INVOKABLE void selectSwipeRow(int row); static QMLManager *instance(); Q_INVOKABLE void registerError(QString error); -- cgit v1.2.3-70-g09d2