aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/windowembedding/QtLogo.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/windowembedding/QtLogo.qml')
-rw-r--r--tests/manual/windowembedding/QtLogo.qml29
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/manual/windowembedding/QtLogo.qml b/tests/manual/windowembedding/QtLogo.qml
new file mode 100644
index 0000000000..5957a37b84
--- /dev/null
+++ b/tests/manual/windowembedding/QtLogo.qml
@@ -0,0 +1,29 @@
+// Copyright (C) 2023 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
+
+import QtQuick
+
+WindowContainer {
+ id: logoContainer
+ width: 42; height: 30
+ window: Window {
+ id: videoLogo
+ visible: true
+ color: "transparent"
+
+ Image {
+ source: {
+ var logo = "qtlogo-"
+ logo += mouseArea.pressed ? "green" : "white"
+ logo += ".png"
+ return logo
+ }
+ anchors.fill: parent
+
+ MouseArea {
+ id: mouseArea
+ anchors.fill: parent
+ }
+ }
+ }
+}