diff options
author | Henning Gruendl <henning.gruendl@qt.io> | 2021-12-02 12:05:31 +0100 |
---|---|---|
committer | Tim Jenssen <tim.jenssen@qt.io> | 2021-12-02 23:35:17 +0000 |
commit | 40c2d9a06bfa3adb4670fdc2e5bef7659d83bd04 (patch) | |
tree | 0efb3091bc443885bec253c836999f4929be558e | |
parent | 9dd6635970c0921ec7e97cc9a36bb3e7cf06c87f (diff) |
QmlDesigner: Remove audio wrapper
Remove the custom audio convenience type which should mimic the QML
Video convenience type only for audio. The custom convenience wrapper is
not working, because MediaPlayer is a QObject and can't have children.
Change-Id: Ic8d06e6397d8b7bb3bc531d47c1cb0b92142a742
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
-rw-r--r-- | share/qtcreator/qmldesigner/propertyEditorQmlSources/QtMultimedia/AudioSection.qml | 67 | ||||
-rw-r--r-- | src/plugins/qmldesigner/qtquickplugin/images/audio-16px.png | bin | 267 -> 0 bytes | |||
-rw-r--r-- | src/plugins/qmldesigner/qtquickplugin/images/audio-24px.png | bin | 521 -> 0 bytes | |||
-rw-r--r-- | src/plugins/qmldesigner/qtquickplugin/images/audio-24px@2x.png | bin | 1026 -> 0 bytes | |||
-rw-r--r-- | src/plugins/qmldesigner/qtquickplugin/qtquickplugin.qrc | 4 | ||||
-rw-r--r-- | src/plugins/qmldesigner/qtquickplugin/quick.metainfo | 22 | ||||
-rw-r--r-- | src/plugins/qmldesigner/qtquickplugin/source/audio.qml | 35 |
7 files changed, 0 insertions, 128 deletions
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtMultimedia/AudioSection.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtMultimedia/AudioSection.qml deleted file mode 100644 index db226e755a..0000000000 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtMultimedia/AudioSection.qml +++ /dev/null @@ -1,67 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2021 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of Qt Creator. -** -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3 as published by the Free Software -** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-3.0.html. -** -****************************************************************************/ - -import QtQuick 2.15 -import QtQuick.Layouts 1.15 -import HelperWidgets 2.0 -import StudioControls 1.0 as StudioControls -import StudioTheme 1.0 as StudioTheme - -Section { - caption: qsTr("Audio") - - anchors.left: parent.left - anchors.right: parent.right - - SectionLayout { - PropertyLabel { text: qsTr("Volume") } - - SecondColumnLayout { - SpinBox { - implicitWidth: StudioTheme.Values.twoControlColumnWidth - + StudioTheme.Values.actionIndicatorWidth - backendValue: backendValues.volume - decimals: 1 - minimumValue: 0.0 - maximumValue: 1.0 - } - - ExpandingSpacer {} - } - - PropertyLabel { text: qsTr("Muted") } - - SecondColumnLayout { - CheckBox { - implicitWidth: StudioTheme.Values.twoControlColumnWidth - + StudioTheme.Values.actionIndicatorWidth - backendValue: backendValues.muted - text: backendValues.muted.valueToString - } - - ExpandingSpacer {} - } - } -} diff --git a/src/plugins/qmldesigner/qtquickplugin/images/audio-16px.png b/src/plugins/qmldesigner/qtquickplugin/images/audio-16px.png Binary files differdeleted file mode 100644 index d9fd2f57bf..0000000000 --- a/src/plugins/qmldesigner/qtquickplugin/images/audio-16px.png +++ /dev/null diff --git a/src/plugins/qmldesigner/qtquickplugin/images/audio-24px.png b/src/plugins/qmldesigner/qtquickplugin/images/audio-24px.png Binary files differdeleted file mode 100644 index 9e477c806d..0000000000 --- a/src/plugins/qmldesigner/qtquickplugin/images/audio-24px.png +++ /dev/null diff --git a/src/plugins/qmldesigner/qtquickplugin/images/audio-24px@2x.png b/src/plugins/qmldesigner/qtquickplugin/images/audio-24px@2x.png Binary files differdeleted file mode 100644 index 41948718fd..0000000000 --- a/src/plugins/qmldesigner/qtquickplugin/images/audio-24px@2x.png +++ /dev/null diff --git a/src/plugins/qmldesigner/qtquickplugin/qtquickplugin.qrc b/src/plugins/qmldesigner/qtquickplugin/qtquickplugin.qrc index af2ff0ff41..0098d05a37 100644 --- a/src/plugins/qmldesigner/qtquickplugin/qtquickplugin.qrc +++ b/src/plugins/qmldesigner/qtquickplugin/qtquickplugin.qrc @@ -31,7 +31,6 @@ <file>images/text-edit-icon16.png</file> <file>images/text-input-icon16.png</file> <file>images/webview-icon16.png</file> - <file>source/audio.qml</file> <file>source/listview.qml</file> <file>source/listviewv2.qml</file> <file>source/gridview.qml</file> @@ -84,9 +83,6 @@ <file>images/loader-icon.png</file> <file>images/loader-icon@2x.png</file> <file>images/loader-icon16.png</file> - <file>images/audio-16px.png</file> - <file>images/audio-24px.png</file> - <file>images/audio-24px@2x.png</file> <file>images/audio-output-16px.png</file> <file>images/audio-output-24px.png</file> <file>images/audio-output-24px@2x.png</file> diff --git a/src/plugins/qmldesigner/qtquickplugin/quick.metainfo b/src/plugins/qmldesigner/qtquickplugin/quick.metainfo index ef81ae181b..d21d8420b4 100644 --- a/src/plugins/qmldesigner/qtquickplugin/quick.metainfo +++ b/src/plugins/qmldesigner/qtquickplugin/quick.metainfo @@ -523,28 +523,6 @@ MetaInfo { } Type { - name: "QtMultimedia.MediaPlayer" - icon: ":/qtquickplugin/images/audio-16px.png" - - Hints { - visibleInNavigator: true - canBeDroppedInNavigator: true - canBeDroppedInFormEditor: false - canBeContainer: false - } - - ItemLibraryEntry { - name: "Audio" - category: "f.Qt Quick - Multimedia" - libraryIcon: ":/qtquickplugin/images/audio-24px.png" - version: "6.0" - requiredImport: "QtMultimedia" - - QmlSource { source: ":/qtquickplugin/source/audio.qml" } - } - } - - Type { name: "QtMultimedia.AudioOutput" icon: ":/qtquickplugin/images/audio-output-16px.png" diff --git a/src/plugins/qmldesigner/qtquickplugin/source/audio.qml b/src/plugins/qmldesigner/qtquickplugin/source/audio.qml deleted file mode 100644 index b3d1347e85..0000000000 --- a/src/plugins/qmldesigner/qtquickplugin/source/audio.qml +++ /dev/null @@ -1,35 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2021 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of Qt Creator. -** -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3 as published by the Free Software -** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-3.0.html. -** -****************************************************************************/ - -import QtQuick 2.0 -import QtMultimedia 6.0 - -MediaPlayer { - audioOutput: output - - AudioOutput { - id: output - } -} |