aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/v4/data/colorType.qml
blob: f6a98a4a3e8b983cde57fc8701718eb7373d6482 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import QtQuick 2.0

QtObject {
    property bool useMyColor: true
    property color myColor: "red"
    property color myOtherColor: "green"

    property color test1: useMyColor ? myColor : myOtherColor
    property color test2: useMyColor ? "red" : "green"
    property color test3: useMyColor ? myColor : "green"

    property bool test4: !myColor ? false : true

    property bool test5: myColor != "red"
    property bool test6: myColor == "#ff0000"
    property bool test7: myColor != "#00ff00"
}