Changeset View
Changeset View
Standalone View
Standalone View
src/apps/marble-maps/RoutingManager.qml
Show All 10 Lines | |||||
11 | import QtQuick 2.3 | 11 | import QtQuick 2.3 | ||
12 | 12 | | |||
13 | import org.kde.edu.marble 0.20 | 13 | import org.kde.edu.marble 0.20 | ||
14 | 14 | | |||
15 | Routing { | 15 | Routing { | ||
16 | id: root | 16 | id: root | ||
17 | 17 | | |||
18 | property var marbleItem: null | 18 | property var marbleItem: null | ||
19 | property var selectedPlacemark: null | | |||
20 | 19 | | |||
21 | marbleMap: marbleItem.marbleMap | 20 | marbleMap: marbleItem.marbleMap | ||
22 | waypointDelegate: Waypoint {visible: false} | 21 | waypointDelegate: Waypoint {visible: false} | ||
23 | onRoutingProfileChanged: { updateRoute(); } | 22 | onRoutingProfileChanged: { updateRoute(); } | ||
24 | 23 | | |||
25 | function addSearchResultAsPlacemark(placemark) | 24 | function addSearchResultAsPlacemark(placemark) | ||
26 | { | 25 | { | ||
27 | if (marbleItem) { | 26 | if (marbleItem) { | ||
28 | root.addSearchResultPlacemark(placemark); | 27 | root.addSearchResultPlacemark(placemark); | ||
29 | } | 28 | } | ||
30 | } | 29 | } | ||
31 | } | 30 | } |