aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlqt
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2020-08-26 09:34:13 +0200
committerFabian Kosmale <fabian.kosmale@qt.io>2020-08-26 11:28:01 +0200
commite714746f9826862056471a9e5ebb9dd7f855fb1e (patch)
tree04c08ea0409b9f6cf8cd239eacc89be30742d36b /tests/auto/qml/qqmlqt
parent66285fd4954b061a5f912f690704c0bdcadf5c98 (diff)
tst_qqmlqt: Avoid warning in test
The test files still contained a property to test functionality which was in the end discarded; thus passing the wrong number of arguments to functions and causing a warning. We simply remove them as they are not needed anywhere. Amends 19850f129881a04c36c51859454bf71ed688f28a As a drive by, replace the obsolete variant with var. Change-Id: If0b3dcd6d8a339a569c39ce304b68fecd3d72779 Reviewed-by: Maximilian Goldstein <max.goldstein@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tests/auto/qml/qqmlqt')
-rw-r--r--tests/auto/qml/qqmlqt/data/alpha.qml1
-rw-r--r--tests/auto/qml/qqmlqt/data/darker.qml1
-rw-r--r--tests/auto/qml/qqmlqt/data/lighter.qml21
3 files changed, 10 insertions, 13 deletions
diff --git a/tests/auto/qml/qqmlqt/data/alpha.qml b/tests/auto/qml/qqmlqt/data/alpha.qml
index 0587f60bc6..2cff777d4d 100644
--- a/tests/auto/qml/qqmlqt/data/alpha.qml
+++ b/tests/auto/qml/qqmlqt/data/alpha.qml
@@ -12,5 +12,4 @@ QtObject {
property variant testColor1: Qt.rgba(1, 0.8, 0.3).alpha(0.5)
property variant testColor3: Qt.rgba(1, 0.8, 0.3).alpha(0.7)
property variant testColor4: Qt.color("red").alpha(0.5);
- property variant testColor7: Qt.rgba(1, 0.8, 0.3).alpha(2.8, 10);
}
diff --git a/tests/auto/qml/qqmlqt/data/darker.qml b/tests/auto/qml/qqmlqt/data/darker.qml
index 0e96990219..3eabef8461 100644
--- a/tests/auto/qml/qqmlqt/data/darker.qml
+++ b/tests/auto/qml/qqmlqt/data/darker.qml
@@ -12,5 +12,4 @@ QtObject {
property variant testColor1: Qt.rgba(1, 0.8, 0.3).darker()
property variant testColor3: Qt.rgba(1, 0.8, 0.3).darker(2.8)
property variant testColor4: Qt.color("red").darker();
- property variant testColor7: Qt.rgba(1, 0.8, 0.3).darker(2.8, 10);
}
diff --git a/tests/auto/qml/qqmlqt/data/lighter.qml b/tests/auto/qml/qqmlqt/data/lighter.qml
index fcae1fbc52..148c53f2b4 100644
--- a/tests/auto/qml/qqmlqt/data/lighter.qml
+++ b/tests/auto/qml/qqmlqt/data/lighter.qml
@@ -1,16 +1,15 @@
import QtQuick 2.0
QtObject {
- property variant test1: Qt.lighter(Qt.rgba(1, 0.8, 0.3))
- property variant test2: Qt.lighter()
- property variant test3: Qt.lighter(Qt.rgba(1, 0.8, 0.3), 1.8)
- property variant test4: Qt.lighter("red");
- property variant test5: Qt.lighter("perfectred"); // Non-existent color
- property variant test6: Qt.lighter(10);
- property variant test7: Qt.lighter(Qt.rgba(1, 0.8, 0.3), 1.8, 5)
+ property var test1: Qt.lighter(Qt.rgba(1, 0.8, 0.3))
+ property var test2: Qt.lighter()
+ property var test3: Qt.lighter(Qt.rgba(1, 0.8, 0.3), 1.8)
+ property var test4: Qt.lighter("red");
+ property var test5: Qt.lighter("perfectred"); // Non-existent color
+ property var test6: Qt.lighter(10);
+ property var test7: Qt.lighter(Qt.rgba(1, 0.8, 0.3), 1.8, 5)
- property variant testColor1: Qt.rgba(1, 0.8, 0.3).lighter()
- property variant testColor3: Qt.rgba(1, 0.8, 0.3).lighter(1.8)
- property variant testColor4: Qt.color("red").lighter();
- property variant testColor7: Qt.rgba(1, 0.8, 0.3).lighter(1.8, 5)
+ property var testColor1: Qt.rgba(1, 0.8, 0.3).lighter()
+ property var testColor3: Qt.rgba(1, 0.8, 0.3).lighter(1.8)
+ property var testColor4: Qt.color("red").lighter();
}