aboutsummaryrefslogtreecommitdiffstats
path: root/sample-qml/apps/HVAC_org/models/HVACModel.qml
diff options
context:
space:
mode:
Diffstat (limited to 'sample-qml/apps/HVAC_org/models/HVACModel.qml')
-rw-r--r--sample-qml/apps/HVAC_org/models/HVACModel.qml47
1 files changed, 0 insertions, 47 deletions
diff --git a/sample-qml/apps/HVAC_org/models/HVACModel.qml b/sample-qml/apps/HVAC_org/models/HVACModel.qml
deleted file mode 100644
index e737af4..0000000
--- a/sample-qml/apps/HVAC_org/models/HVACModel.qml
+++ /dev/null
@@ -1,47 +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/. */
-
-pragma Singleton
-
-import QtQuick 2.0
-import vehicle 1.0
-
-Item {
- property bool fanUp: false
- property bool fanRight: false
- property bool fanDown: false
-
- property bool fanAC: false
- property bool fanAuto: false
- property bool fanRecirc: false
-
- property real fanSpeed: 0
-
- property bool defrostMax: false
- property bool defrostFront: false
- property bool defrostRear: false
-
- property real leftTemperature: 0
- property real rightTemperature: 0
-
- property int leftSeatHeat: 0
- property int rightSeatHeat: 0
-
- onFanSpeedChanged: {
- var currentFan = ClimateModel.getRangeValue(fanSpeed,ClimateModel.fanStepSize);
- ClimateModel.fanSpeed = currentFan;
- }
-
- onLeftTemperatureChanged: {
- var temperature = ClimateModel.getRangeValue(leftTemperature,ClimateModel.temperatureStepSize);
- ClimateModel.leftTemp = temperature;
- }
-
- onRightTemperatureChanged: {
- var temperature = ClimateModel.getRangeValue(rightTemperature,ClimateModel.temperatureStepSize);
- ClimateModel.rightTemp = temperature;
- }
-}