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 bool value: false
17 property bool flash: false
21 source: "./images/hazard_" + (value ? (flash ? "blink" : "on") : "off") + ".png"
26 onClicked: value = !value
35 onTriggered: flash = !flash