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/. */
13 width: imageItem.width
14 height: imageItem.height
17 property string target: ""
18 property string image: ""
19 property bool value: HVACModel[target]
23 source: "images/" + image + "_" + (value ? "on" : "off") + ".png"
28 onClicked: HVACModel[target] = !HVACModel[target]