diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2017-07-21 01:28:58 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-07-28 07:31:11 -0700 |
commit | 4d0d0e102b12d70e3944c7fdeae3b3a0270f6870 (patch) | |
tree | 8ce6b5906572eaf356ad9f7833e582f2802fb51a /profile-widget/profilewidget2.h | |
parent | 413e4712448a005c30c323d2da1e0e5ef3640004 (diff) | |
download | subsurface-4d0d0e102b12d70e3944c7fdeae3b3a0270f6870.tar.gz |
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>
Diffstat (limited to 'profile-widget/profilewidget2.h')
0 files changed, 0 insertions, 0 deletions