diff options
author | Kai Köhne <kai.koehne@qt.io> | 2023-07-05 15:23:08 +0200 |
---|---|---|
committer | Kai Köhne <kai.koehne@qt.io> | 2023-09-04 16:57:24 +0200 |
commit | f3eba557d1cc454c414d5fd7403cfb04d235417f (patch) | |
tree | 9a140c2b1aa63bc12ac6f276144d887849c22170 | |
parent | a065d4e8bacb936f503ec81add83eeb6fe718747 (diff) |
Doc: Remove unused snippets
Both files are not referenced anywhere.
Change-Id: I4ec92ac3270bbbf9e36ebb3928d4bab4ee9360b2
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
-rw-r--r-- | src/location/doc/snippets/declarative/content/Cell.qml | 31 | ||||
-rw-r--r-- | src/location/doc/snippets/declarative/declarative-location.qml | 48 |
2 files changed, 0 insertions, 79 deletions
diff --git a/src/location/doc/snippets/declarative/content/Cell.qml b/src/location/doc/snippets/declarative/content/Cell.qml deleted file mode 100644 index e0373c62..00000000 --- a/src/location/doc/snippets/declarative/content/Cell.qml +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause - -import Qt 4.7 - -Item { - id: container - property string action: "no-op" - signal clicked(string action) - - width: 100; height:30 - - Rectangle { - id: rectangle - border.color: "white" - border.width: 2 - anchors.fill: parent // Fill the whole container - } - Text { - id: text - text: container.action - color: "black" - anchors.left: parent.left - anchors.leftMargin: 5 - anchors.verticalCenter: parent.verticalCenter - } - MouseArea { - anchors.fill: parent // Whole container is clickable - onClicked: container.clicked(container.action) - } -} diff --git a/src/location/doc/snippets/declarative/declarative-location.qml b/src/location/doc/snippets/declarative/declarative-location.qml deleted file mode 100644 index afd93495..00000000 --- a/src/location/doc/snippets/declarative/declarative-location.qml +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause - -//![0] -import QtQuick 2.0 -import QtPositioning 5.2 - -Rectangle { - id: page - width: 350 - height: 350 - PositionSource { - id: positionSource - updateInterval: 1000 - active: true - // nmeaSource: "nmealog.txt" - } - Column { - Text {text: "<==== PositionSource ====>"} - Text {text: "preferredPositioningMethods: " + printableMethod(positionSource.preferredPositioningMethods)} - Text {text: "supportedPositioningMethods: " + printableMethod(positionSource.supportedPositioningMethods)} - Text {text: "nmeaSource: " + positionSource.nmeaSource} - Text {text: "updateInterval: " + positionSource.updateInterval} - Text {text: "active: " + positionSource.active} - Text {text: "<==== Position ====>"} - Text {text: "latitude: " + positionSource.position.coordinate.latitude} - Text {text: "longitude: " + positionSource.position.coordinate.longitude} - Text {text: "altitude: " + positionSource.position.coordinate.altitude} - Text {text: "speed: " + positionSource.position.speed} - Text {text: "timestamp: " + positionSource.position.timestamp} - Text {text: "altitudeValid: " + positionSource.position.altitudeValid} - Text {text: "longitudeValid: " + positionSource.position.longitudeValid} - Text {text: "latitudeValid: " + positionSource.position.latitudeValid} - Text {text: "speedValid: " + positionSource.position.speedValid} - } - function printableMethod(method) { - if (method == PositionSource.SatellitePositioningMethods) - return "Satellite"; - else if (method == PositionSource.NoPositioningMethods) - return "Not available" - else if (method == PositionSource.NonSatellitePositioningMethods) - return "Non-satellite" - else if (method == PositionSource.AllPositioningMethods) - return "All/multiple" - return "source error"; - } - } -//![0] |