subsurface/mobile-widgets
Lubomir I. Ivanov 4d0d0e102b mapwidgetcontextmenu: add the actionSelected() signal
The actionSelected() signal is now dispatched when the user selects
an action from the menu (see the "actions" object). Then the declaration
of the MapWidgetContextMenu object in mapwidget.qml can catch that
signal in the onActionSelected() slot and obtain the action via
switch() branching.

The actions enumeration is kept in QML for now, with the idea that
specific C++ methods from the mapwidgethelper class will be called
directly (if marked as Q_INVOCABLE), instead of a generic
onMapAction(action) C++ method in the helper. But if the actions
are possible from QML (like copying to clipboard) and are also
small and non-expensive, it might be better to keep them
in mapwidget.qml.

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
2017-07-28 07:31:11 -07:00
..
qml mapwidgetcontextmenu: add the actionSelected() signal 2017-07-28 07:31:11 -07:00
qmlmanager.cpp Mobile: honour location service time threshold 2017-07-25 22:12:19 +09:00
qmlmanager.h QML UI: add checkbox to show/hide developer menu 2017-07-23 03:20:58 +09:00
qmlmapwidgethelper.cpp mapwidgethelper.cpp: call deselectMapLocation() in QML 2017-07-28 07:31:11 -07:00
qmlmapwidgethelper.h mapwidgethelper: add a slot to handle marker selection from the model 2017-07-28 07:31:11 -07:00
qmlprofile.cpp QML UI: adjust to modified logging API 2017-06-11 13:55:41 -07:00
qmlprofile.h Add SPDX header to mobile widgets and QML files 2017-04-29 13:32:55 -07:00