tests/auto/qml/qqmlqt/data/darker.qml
raw| 1 | import QtQuick 2.0 |
| 2 | |
| 3 | QtObject { |
| 4 | property variant test1: Qt.darker(Qt.rgba(1, 0.8, 0.3)) |
| 5 | property variant test2: Qt.darker() |
| 6 | property variant test3: Qt.darker(Qt.rgba(1, 0.8, 0.3), 2.8) |
| 7 | property variant test4: Qt.darker("red"); |
| 8 | property variant test5: Qt.darker("perfectred"); // Non-existent color |
| 9 | property variant test6: Qt.darker(10); |
| 10 | property variant test7: Qt.darker(Qt.rgba(1, 0.8, 0.3), 2.8, 10) |
| 11 | } |
| 12 |