Warning, /education/marble/src/apps/marble-maps/WaypointImage.qml is written in an unsupported language. File is not indexed.
0001 // SPDX-License-Identifier: LGPL-2.1-or-later
0002 //
0003 // SPDX-FileCopyrightText: 2015 Gábor Péterffy <peterffy95@gmail.com>
0004 //
0005
0006 import QtQuick 2.3
0007 import QtGraphicalEffects 1.0
0008 import QtQuick.Window 2.2
0009
0010 import org.kde.marble 0.20
0011
0012 Item {
0013 id: root
0014
0015 // Can be 'departure', 'waypoint', 'destination', 'searchResult'
0016 property alias type: image.state
0017
0018 signal clicked()
0019
0020 width: Screen.pixelDensity * 6
0021 height: width
0022
0023 Image {
0024 id: image
0025 anchors.fill: parent
0026
0027 states: [
0028 State {
0029 name: "departure"
0030 PropertyChanges {
0031 target: image
0032 source: "qrc:///ic_place_departure.png"
0033 }
0034 },
0035
0036 State {
0037 name: "waypoint"
0038 PropertyChanges {
0039 target: image
0040 source: "qrc:///ic_place_via.png"
0041 }
0042 },
0043
0044 State {
0045 name: "destination"
0046 PropertyChanges {
0047 target: image
0048 source: "qrc:///ic_place_arrival.png"
0049 }
0050 },
0051
0052 State {
0053 name: "searchResult"
0054 PropertyChanges {
0055 target: image
0056 source: "qrc:///ic_place.png"
0057 }
0058 }
0059 ]
0060
0061 MouseArea {
0062 id: touchArea
0063 anchors.fill: parent
0064 onClicked: root.clicked()
0065 }
0066 }
0067 }