diff options
author | Henning Gruendl <henning.gruendl@qt.io> | 2021-12-10 17:21:26 +0100 |
---|---|---|
committer | Henning Gründl <henning.gruendl@qt.io> | 2021-12-13 09:26:37 +0000 |
commit | a6b7473350a9bbca5b26f19fe6505b75b6736189 (patch) | |
tree | 3c4ff1e75d532a83b3381351c070baf1da16bb1d | |
parent | 70b3a11ebbe11e4e3818de8a695301a92509f775 (diff) |
QmlDesigner: Hide Audio-/VideoOutput for video
Hide controls for AudioOutput and VideoOutput in VideoSpecifics.
Change-Id: Icfb66d44cca815dd201c7beda33930ff86a5753e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2 files changed, 14 insertions, 1 deletions
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtMultimedia/MediaPlayerSection.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtMultimedia/MediaPlayerSection.qml index 979a276e6e..2e58189a4d 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtMultimedia/MediaPlayerSection.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtMultimedia/MediaPlayerSection.qml @@ -30,11 +30,15 @@ import StudioControls 1.0 as StudioControls import StudioTheme 1.0 as StudioTheme Section { + id: root caption: qsTr("Media Player") anchors.left: parent.left anchors.right: parent.right + property bool showAudioOutput: false + property bool showVideoOutput: false + // TODO position property, what should be the range?! SectionLayout { @@ -54,11 +58,14 @@ Section { } PropertyLabel { + visible: root.showAudioOutput text: qsTr("Audio Output") tooltip: qsTr("Holds the target audio output.") } SecondColumnLayout { + visible: root.showAudioOutput + ItemFilterComboBox { implicitWidth: StudioTheme.Values.singleControlColumnWidth + StudioTheme.Values.actionIndicatorWidth @@ -72,11 +79,14 @@ Section { } PropertyLabel { + visible: root.showVideoOutput text: qsTr("Video Output") tooltip: qsTr("Holds the target video output.") } SecondColumnLayout { + visible: root.showVideoOutput + ItemFilterComboBox { implicitWidth: StudioTheme.Values.singleControlColumnWidth + StudioTheme.Values.actionIndicatorWidth diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtMultimedia/MediaPlayerSpecifics.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtMultimedia/MediaPlayerSpecifics.qml index 1a6c41ecf8..dbf25df2f6 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtMultimedia/MediaPlayerSpecifics.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtMultimedia/MediaPlayerSpecifics.qml @@ -33,5 +33,8 @@ Column { anchors.left: parent.left anchors.right: parent.right - MediaPlayerSection {} + MediaPlayerSection { + showAudioOutput: true + showVideoOutput: true + } } |