9import QtQuick.Controls as QQC2
10import org.kde.kirigami as Kirigami
11import org.kde.kosmindoormap
12import org.kde.osm.editorcontroller
14OSMElementInformationDialog {
15 id: elementDetailsSheet
16 customFooterActions: [
18 icon.name: "document-edit"
20 visible: elementDetailsSheet.model.element.id > 0
21 onTriggered: EditorController.editElement(elementDetailsSheet.model.element.element, Editor.ID)
24 icon.name:
"org.openstreetmap.josm"
25 text:
"Edit with JOSM"
26 visible: elementDetailsSheet.model.element.id > 0 && EditorController.hasEditor(Editor.JOSM)
27 onTriggered: EditorController.editElement(elementDetailsSheet.model.element.element, Editor.JOSM)
30 icon.name:
"document-edit"
31 text:
"Edit with Vespucci"
32 visible: elementDetailsSheet.model.element.id > 0 && EditorController.hasEditor(Editor.Vespucci)
33 onTriggered: EditorController.editElement(elementDetailsSheet.model.element.element, Editor.Vespucci)
36 property string wikidataId: elementDetailsSheet.model.element.tagValue([
"wikidata",
"brand:wikidata",
"species:wikidata",
"subject:wikidata"])
37 icon.name:
"document-edit"
39 visible: wikidataId.match(/^Q\d+$/)
40 onTriggered:
Qt.openUrlExternally(
"https://wikidata.org/wiki/" + wikidataId)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:55:43 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.