aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorIvan Tkachenko <me@ratijas.tk>2020-05-14 20:49:47 +0300
committerIvan Tkachenko <me@ratijas.tk>2020-05-15 07:25:11 +0000
commit7dd5ae3f45c49cbfcf87c5b6205e1d3482454c4d (patch)
tree54e1923ecaa74705fe0b8a259383311d3afa2019 /tests
parent8fdcde54e65f92a04c7165677e85168ceed1d20b (diff)
Tests for Qt.labs.platform/MenuItem.icon
Test that nested property icon.* can be used in this Qt.labs.platform version. Just checks that imports work and properties can be created. Task-number: QTBUG-84102 Pick-to: 5.15 Change-Id: I450a7fa2c5f257a7e6e1b07630f05f7662964cd0 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/platform/data/tst_menuitem.qml7
-rw-r--r--tests/auto/platform/data/tst_systemtrayicon.qml7
2 files changed, 10 insertions, 4 deletions
diff --git a/tests/auto/platform/data/tst_menuitem.qml b/tests/auto/platform/data/tst_menuitem.qml
index 63d4989a..29d369bc 100644
--- a/tests/auto/platform/data/tst_menuitem.qml
+++ b/tests/auto/platform/data/tst_menuitem.qml
@@ -50,7 +50,7 @@
import QtQuick 2.12
import QtTest 1.0
-import Qt.labs.platform 1.0
+import Qt.labs.platform 1.1
TestCase {
id: testCase
@@ -62,7 +62,10 @@ TestCase {
Component {
id: menuItem
- MenuItem { }
+ // Check that icon.name can be used in this Qt.labs.platform version
+ MenuItem {
+ icon.name: ""
+ }
}
SignalSpy {
diff --git a/tests/auto/platform/data/tst_systemtrayicon.qml b/tests/auto/platform/data/tst_systemtrayicon.qml
index 675f08f3..ce7d8b8d 100644
--- a/tests/auto/platform/data/tst_systemtrayicon.qml
+++ b/tests/auto/platform/data/tst_systemtrayicon.qml
@@ -50,7 +50,7 @@
import QtQuick 2.12
import QtTest 1.0
-import Qt.labs.platform 1.0
+import Qt.labs.platform 1.1
TestCase {
id: testCase
@@ -62,7 +62,10 @@ TestCase {
Component {
id: systemTrayIcon
- SystemTrayIcon { }
+ // Check that icon.name can be used in this Qt.labs.platform version
+ SystemTrayIcon {
+ icon.name: ""
+ }
}
SignalSpy {