blob: 5957a37b84454435510823b18a55f55ec52bda43 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
}
}
}
}
|