summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-11-14 17:42:59 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-11-14 10:01:50 -0800
commit38a784f5af3e19936df29e93b70a66e3741f8ea8 (patch)
tree2a6832759936eb91497d99457d8bae8c01db00a5 /mobile-widgets
parent52d5125926f430a86dc14a60911b04b8072c712a (diff)
downloadsubsurface-38a784f5af3e19936df29e93b70a66e3741f8ea8.tar.gz
desktop: automatically reload completion-models
Instead of programatically reload the completion models, listen to the relevant signals in the models. To that goal, derive all the models from a base class. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qmlmanager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp
index 12dad8086..10f6f11e5 100644
--- a/mobile-widgets/qmlmanager.cpp
+++ b/mobile-widgets/qmlmanager.cpp
@@ -452,9 +452,9 @@ void QMLManager::selectSwipeRow(int row)
void QMLManager::updateAllGlobalLists()
{
- buddyModel.updateModel(); emit buddyListChanged();
- suitModel.updateModel(); emit suitListChanged();
- divemasterModel.updateModel(); emit divemasterListChanged();
+ emit buddyListChanged();
+ emit suitListChanged();
+ emit divemasterListChanged();
// TODO: It would be nice if we could export the list of locations via model/view instead of a Q_PROPERTY
emit locationListChanged();
}