aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Tkachenko <me@ratijas.tk>2020-05-14 20:49:47 +0300
committerQt Cherry-pick Bot <cherrypickbot@codereview.qt-project.org>2020-05-15 08:27:54 +0000
commit7027b2040be5c9675e542244dc457f208d903612 (patch)
tree766f53fc16f178e311d8207d442210ee7e40f0fc
parent5e82f0731d1c9646cef1e4bb4641867f560a3dc1 (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 Change-Id: I450a7fa2c5f257a7e6e1b07630f05f7662964cd0 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> (cherry picked from commit 7dd5ae3f45c49cbfcf87c5b6205e1d3482454c4d) Reviewed-by: Qt Cherry-pick Bot
-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 {