subsurface/map-widget
Berthold Stoeger 28cb75b73d Map: explicitly reload selected map on click
When clicking on a flag
 1) The QML would call MapLocationModel::setSelected() with
    fromClick = true
 2) MapLocationModel::setSelected() would emit a signal
    selectedLocationChanged()
 3) MapWidgetHelper would catch that signal and do the actual
    processing.
Other functions would call MapLocationModel::setSelected() with
fromClick = false, which would not emit the selectedLocationChanged()
signal.

Detangle this a bit by calling the selectedLocationChanged() function
directly from QML and remove the fromClick parameter.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2019-09-06 11:48:47 -07:00
..
qml Map: explicitly reload selected map on click 2019-09-06 11:48:47 -07:00
qmlmapwidgethelper.cpp Map: explicitly reload selected map on click 2019-09-06 11:48:47 -07:00
qmlmapwidgethelper.h Map: explicitly reload selected map on click 2019-09-06 11:48:47 -07:00