From b4202d3d5aca7842314edbf010e2e8605a6a9e24 Mon Sep 17 00:00:00 2001 From: Naoto Yamaguchi Date: Sat, 28 Sep 2024 03:41:20 +0900 Subject: Rework momplay to migrate to Qt6 QtMultimedia has big change from Qt5 to Q6. Existing momiplay is difficult to migrate to Qt6. New momiplay is made from Qt Media Player Example. As a result, it get video player capability. Bug-AGL: SPEC-5162 Change-Id: Ib754f914fc9d5534721f0d29df689ac11034025a Signed-off-by: Naoto Yamaguchi --- SettingsInfo.qml | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 SettingsInfo.qml (limited to 'SettingsInfo.qml') diff --git a/SettingsInfo.qml b/SettingsInfo.qml new file mode 100644 index 0000000..92d910e --- /dev/null +++ b/SettingsInfo.qml @@ -0,0 +1,52 @@ +// Copyright (C) 2023 The Qt Company Ltd. +// Copyright (C) 2024 Automotive Grade Linux +// SPDX-License-Identifier: GPL-3.0+ + +pragma ComponentBehavior: Bound + +import QtQuick +import QtQuick.Layouts +import QtQuick.Controls.Fusion +import QtMultimedia +import Config + +Rectangle { + id: root + implicitWidth: 380 + color: Config.mainColor + border.color: "lightgrey" + radius: 10 + + property alias metadataInfo: metadataInfo + required property MediaPlayer mediaPlayer + required property int selectedAudioTrack + required property int selectedVideoTrack + required property int selectedSubtitleTrack + + MouseArea { + anchors.fill: root + preventStealing: true + } + + Item { + id: bar + anchors.fill: root + anchors.margins: 30 + + Label { + id: label + font.bold: true + font.pixelSize: 20 + text: qsTr("Metadata") + color: Config.secondaryColor + + Layout.fillWidth: true + } + + MetadataInfo { + id: metadataInfo + anchors.fill: bar + anchors.topMargin: label.height + 0 + } + } +} -- cgit 1.2.3-korg