Commit ea7c16a6 authored by Judit Bartha's avatar Judit Bartha

Changed Part of Routes menu to OverlaySheet, fixed Bookmarks color overlay bug on swipe-removal

parent 6473b6fc
This diff is collapsed.
......@@ -93,6 +93,5 @@
<file>MarbleScrollBar.qml</file>
<file alias="material/phone.svg">material-icons/ic_phone_black_48px.svg</file>
<file alias="material/drag.png">material-icons/ic_drag_handle_black_48dp.png</file>
<file>qtquickcontrols2.conf</file>
</qresource>
</RCC>
......@@ -14,6 +14,8 @@ import QtQuick.Controls 2.0
import QtQuick.Layouts 1.3
import QtQuick.Dialogs 1.2
import org.kde.kirigami 2.0 as Kirigami
import org.kde.marble 0.20
Item {
......@@ -161,15 +163,23 @@ Item {
}
}
Dialog {
Kirigami.OverlaySheet {
id: routesDialog
title: qsTr("Routes")
RoutesItem {
id: routesItem
implicitWidth: parent.width
model: placemark === null ? undefined : placemark.routeRelationModel
onHighlightChanged: map.highlightRouteRelation(oid, enabled)
ColumnLayout {
property int implicitWidth: root.width//Units.gridUnit * 30
id: columnLayout
Label{
Layout.fillWidth: true
text: qsTr("<h2>Routes</h2>")
}
RoutesItem {
id: routesItem
Layout.fillWidth: true
model: placemark === null ? undefined : placemark.routeRelationModel
onHighlightChanged: map.highlightRouteRelation(oid, enabled)
}
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment