1 /* Copyright (C) 2015, Jaguar Land Rover. All Rights Reserved.
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
14 border.color: "#ff53b5ce"
16 property string side: "left"
17 property string propertyName: side + "SeatHeat"
18 property int seatHeat: HVACModel[propertyName]
21 source: "./images/" + side + "_heat_seat_off.png"
26 height: implicitHeight - y
28 verticalAlignment: Image.AlignBottom
29 source: "./images/" + side + "_heat_seat_on.png"
35 var value = HVACModel[propertyName]
36 HVACModel[propertyName] = value > 0 ? value - 1 : 3