diff options
author | 2016-12-15 05:50:29 +0100 | |
---|---|---|
committer | 2016-12-15 05:55:33 +0100 | |
commit | a4f5c7d97fcbb97ece05cfbca38fb1963ab11377 (patch) | |
tree | 9436a9fadfc871140cd460939d9c084b198b6b26 /sample-qml/apps/HVAC_org/TemperatureWheel.qml | |
parent | f775180abd5e6adb58763bec74aa250bf4657341 (diff) |
Delete unneeded files
- sample-qml no longer needed
- widgets no longer needed
- images replaced by new HMI before
Signed-off-by: Bocklage, Jens <Jens_Bocklage@mentor.com>
Diffstat (limited to 'sample-qml/apps/HVAC_org/TemperatureWheel.qml')
-rw-r--r-- | sample-qml/apps/HVAC_org/TemperatureWheel.qml | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/sample-qml/apps/HVAC_org/TemperatureWheel.qml b/sample-qml/apps/HVAC_org/TemperatureWheel.qml deleted file mode 100644 index 7a59dde..0000000 --- a/sample-qml/apps/HVAC_org/TemperatureWheel.qml +++ /dev/null @@ -1,56 +0,0 @@ -/* Copyright (C) 2015, Jaguar Land Rover. All Rights Reserved. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -import QtQuick 2.0 -import "models" - -Rectangle { - width: 237 - height: 350 - color: "#aa000000" - - property string side: "left" - property string propertyName: side + "Temperature" - property real value: HVACModel[propertyName] - - ListView { - anchors.fill: parent - clip: true - snapMode: ListView.SnapToItem - model: TemperatureModel - header: Item { height: 120 } - footer: Item { height: 120 } - currentIndex: Math.min(value * count, count - 1) - flickDeceleration: 5000 - onContentYChanged: { - if (dragging || flicking) { - var item = Math.round((contentY + 120) / 110) - item = Math.max(Math.min(item, count - 1), 0) - if (item != currentIndex) { - var temperature = item / (count - 1) - HVACModel[propertyName] = temperature - } - } - } - highlightMoveDuration: 100 - interactive: true - - delegate: Text { - x: side === "right" ? 40 : 10 - height: 110 - verticalAlignment: Text.AlignVCenter - color: "white" - font.pixelSize: 70 - text: model.text - } - } - - Image { - mirror: side === "left" - source: "./images/right_number_cover.svg" - anchors.fill: parent - } -} |