From 2a5b516f027495f71f511a03d05d5ad19d014d41 Mon Sep 17 00:00:00 2001 From: Andrew Wason Date: Fri, 19 Jan 2024 17:56:39 -0500 Subject: [PATCH] simplify sequence.qml, don't need parent Item --- tests/qml/sequence.qml | 86 ++++++++++++++++++++---------------------- 1 file changed, 41 insertions(+), 45 deletions(-) diff --git a/tests/qml/sequence.qml b/tests/qml/sequence.qml index c7c8745..cc960c4 100644 --- a/tests/qml/sequence.qml +++ b/tests/qml/sequence.qml @@ -6,53 +6,49 @@ import QtQuick.Effects import QtMultimedia import MediaFX -Item { - MediaSequence { - id: sequence +MediaSequence { + id: sequence - anchors.fill: parent - - mediaMixers: [ - CrossFadeMixer { - }, - WipeMixer { - direction: WipeMixer.Direction.Down - blindsEffect: 0.05 - }, - WipeMixer { - direction: WipeMixer.Direction.Right - transitionWidth: 2.0 - }, - WipeMixer { - direction: WipeMixer.Direction.Left - blindsEffect: 0.05 - } - ] - - Component.onCompleted: { - sequence.mediaSequenceEnded.connect(MediaManager.finishEncoding); + mediaMixers: [ + CrossFadeMixer { + }, + WipeMixer { + direction: WipeMixer.Direction.Down + blindsEffect: 0.05 + }, + WipeMixer { + direction: WipeMixer.Direction.Right + transitionWidth: 2.0 + }, + WipeMixer { + direction: WipeMixer.Direction.Left + blindsEffect: 0.05 } + ] - MediaClip { - source: Qt.resolvedUrl("../fixtures/assets/blue-320x180-30fps-3s.mp4") - } - MediaClip { - endTime: 3000 - source: Qt.resolvedUrl("../fixtures/assets/red-320x180-15fps-8s.mp4") - } - MediaClip { - source: Qt.resolvedUrl("../fixtures/assets/green-320x180-15fps-3s.mp4") - } - MediaClip { - endTime: 3000 - source: Qt.resolvedUrl("../fixtures/assets/red-160x120.png") - } - MediaClip { - source: Qt.resolvedUrl("../fixtures/assets/yellow-320x180-15fps-3s.mp4") - } - MediaClip { - endTime: 3000 - source: Qt.resolvedUrl("../fixtures/assets/edjustforyou-320x180-15fps-5.2s.mp4") - } + Component.onCompleted: { + sequence.mediaSequenceEnded.connect(MediaManager.finishEncoding); + } + + MediaClip { + source: Qt.resolvedUrl("../fixtures/assets/blue-320x180-30fps-3s.mp4") + } + MediaClip { + endTime: 3000 + source: Qt.resolvedUrl("../fixtures/assets/red-320x180-15fps-8s.mp4") + } + MediaClip { + source: Qt.resolvedUrl("../fixtures/assets/green-320x180-15fps-3s.mp4") + } + MediaClip { + endTime: 3000 + source: Qt.resolvedUrl("../fixtures/assets/red-160x120.png") + } + MediaClip { + source: Qt.resolvedUrl("../fixtures/assets/yellow-320x180-15fps-3s.mp4") + } + MediaClip { + endTime: 3000 + source: Qt.resolvedUrl("../fixtures/assets/edjustforyou-320x180-15fps-5.2s.mp4") } }