From 730fd268141a7590f78a89c11dd422718d23e449 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Fri, 6 Mar 2020 18:06:31 +0100 Subject: mobile/divelist: connect click on trip to toggle MobileListModel Signed-off-by: Berthold Stoeger --- mobile-widgets/qml/DiveList.qml | 2 +- mobile-widgets/qmlmanager.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'mobile-widgets') diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml index a9ff4e8d6..db78f1de6 100644 --- a/mobile-widgets/qml/DiveList.qml +++ b/mobile-widgets/qml/DiveList.qml @@ -50,7 +50,7 @@ Kirigami.ScrollablePage { if (isTrip) { manager.appendTextToLog("clicked on trip " + tripTitle) // toggle expand (backend to deal with unexpand other trip) - manager.toggle(model.row); + diveModel.toggle(model.row); } else { manager.appendTextToLog("clicked on dive") if (detailsWindow.state === "view") { diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index 78bdb84d8..81f203bdb 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -24,6 +24,7 @@ #include "qt-models/completionmodels.h" #include "qt-models/messagehandlermodel.h" #include "qt-models/tankinfomodel.h" +#include "qt-models/mobilelistmodel.h" #include "core/device.h" #include "core/errorhelper.h" #include "core/file.h" -- cgit v1.2.3-70-g09d2