aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quickcontrols/wearable/qml/Navigation/NavigationPage.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quickcontrols/wearable/qml/Navigation/NavigationPage.qml')
-rw-r--r--examples/quickcontrols/wearable/qml/Navigation/NavigationPage.qml73
1 files changed, 0 insertions, 73 deletions
diff --git a/examples/quickcontrols/wearable/qml/Navigation/NavigationPage.qml b/examples/quickcontrols/wearable/qml/Navigation/NavigationPage.qml
deleted file mode 100644
index f9fdd61b47..0000000000
--- a/examples/quickcontrols/wearable/qml/Navigation/NavigationPage.qml
+++ /dev/null
@@ -1,73 +0,0 @@
-// Copyright (C) 2017 The Qt Company Ltd.
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
-
-import QtQuick
-import "../Style"
-import "navigation.js" as NavigationData
-
-Item {
- property alias routeListView: routeView
-
- Column {
- anchors.fill: parent
- anchors.margins: 2
- spacing: 2
-
- Rectangle {
- anchors.horizontalCenter: parent.horizontalCenter
- width: parent.width
- height: titleRow.height
-
- color: UIStyle.themeColorQtGray9
-
- Row {
- id: titleRow
- spacing: 10
- anchors.centerIn: parent
-
- Image {
- anchors.verticalCenter: parent.verticalCenter
- source: UIStyle.themeImagePath("images/navigation")
- fillMode: Image.PreserveAspectCrop
- }
- Text {
- anchors.verticalCenter: parent.verticalCenter
- text: qsTr("Walking")
- font.pixelSize: UIStyle.fontSizeM
- font.letterSpacing: 2
- color: UIStyle.themeColorQtGray2
- }
- }
- }
-
- ListModel {
- id: routeModel
- }
-
- ListView {
- id: routeView
-
- width: parent.width
- height: parent.height - titleRow.height - parent.spacing
- property var imageList: [UIStyle.themeImagePath("images/straight"),
- UIStyle.themeImagePath("images/leftturn"),
- UIStyle.themeImagePath("images/rightturn"),
- "images/uturn.png",
- "images/start.png",
- "images/end.png"]
-
- clip: true
- focus: true
- boundsBehavior: Flickable.StopAtBounds
- snapMode: ListView.SnapToItem
- model: routeModel
- delegate: RouteElement {
- width: routeView.width
- height: routeView.height
- }
- }
- }
- Component.onCompleted: {
- NavigationData.requestNavigationRoute(routeModel)
- }
-}