diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-11-14 17:42:59 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-11-14 10:01:50 -0800 |
commit | 38a784f5af3e19936df29e93b70a66e3741f8ea8 (patch) | |
tree | 2a6832759936eb91497d99457d8bae8c01db00a5 /mobile-widgets/qmlmanager.cpp | |
parent | 52d5125926f430a86dc14a60911b04b8072c712a (diff) | |
download | subsurface-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/qmlmanager.cpp')
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 6 |
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(); } |