summaryrefslogtreecommitdiffstats
path: root/examples/multimedia/video/qmlvideo/qml/qmlvideo/SceneFullScreenInverted.qml
diff options
context:
space:
mode:
authorOliver Eftevaag <oliver.eftevaag@qt.io>2023-12-14 21:59:03 +0100
committerOliver Eftevaag <oliver.eftevaag@qt.io>2024-02-06 13:42:54 +0100
commitbcea455ffc27bd030c25a12ba699f8ea2ae16ee9 (patch)
treecf98004e736ce7411a640fee708141e9cfe228a5 /examples/multimedia/video/qmlvideo/qml/qmlvideo/SceneFullScreenInverted.qml
parent82a8e01ae5b7ad81eb252a9b388378aa09f6c034 (diff)
qmlvideo: split the project into different qml modules
We want to encourage people to split their qml projects into modules, which is friendlier for out tooling, and makes better use of out cmake API. Since the qmlvideo example was already split into 3 parts (frequencymonitor, performancemonitor, and the rest of the app) It made sense to turn those 3 parts into their own qml modules. This way, we can also make better use new the cmake API, e.g: qt_add_qml_module(), qt_standard_project_setup(), etc. In addition to QQuickView::loadFromModule() which was introduced in 6.7. This patch also makes the example adhere to our guidelines for examples better, but a follow-up patch is needed in order to make it fully compliant with our guidelines for examples. Task-number: QTBUG-113689 Pick-to: 6.7 Change-Id: Icd5cdc56fda8fbcd101e76d6f15ad31609889465 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Diffstat (limited to 'examples/multimedia/video/qmlvideo/qml/qmlvideo/SceneFullScreenInverted.qml')
-rw-r--r--examples/multimedia/video/qmlvideo/qml/qmlvideo/SceneFullScreenInverted.qml70
1 files changed, 0 insertions, 70 deletions
diff --git a/examples/multimedia/video/qmlvideo/qml/qmlvideo/SceneFullScreenInverted.qml b/examples/multimedia/video/qmlvideo/qml/qmlvideo/SceneFullScreenInverted.qml
deleted file mode 100644
index 837c440f9..000000000
--- a/examples/multimedia/video/qmlvideo/qml/qmlvideo/SceneFullScreenInverted.qml
+++ /dev/null
@@ -1,70 +0,0 @@
-// Copyright (C) 2016 The Qt Company Ltd.
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
-
-import QtQuick
-
-Scene {
- id: root
- property string contentType
-
- Content {
- id: content
- anchors.centerIn: parent
- width: parent.width
- height: parent.height
- contentType: root.contentType
- source: parent.source1
- volume: parent.volume
- state: "left"
-
- states: [
- State {
- name: "nonFullScreen"
- PropertyChanges { target: content; width: content.parent.contentWidth }
- }
- ]
-
- transitions: [
- Transition {
- ParallelAnimation {
- PropertyAnimation {
- property: "width"
- easing.type: Easing.Linear
- duration: 250
- }
- PropertyAnimation {
- property: "height"
- easing.type: Easing.Linear
- duration: 250
- }
- }
- }
- ]
-
- MouseArea {
- anchors.fill: parent
- onClicked: content.state = (content.state == "nonFullScreen") ? "baseState" : "nonFullScreen"
- }
-
- onVideoFramePainted: root.videoFramePainted()
-
- onInitialized: {
- width = parent.width
- height = parent.height
- }
- }
-
- Text {
- anchors {
- horizontalCenter: parent.horizontalCenter
- bottom: parent.bottom
- margins: 20
- }
- text: "Tap on the content to toggle full-screen mode"
- color: "#e0e0e0"
- z: 2.0
- }
-
- Component.onCompleted: root.content = content
-}
-