mirror of
https://code.videolan.org/videolan/vlc
synced 2024-07-21 07:24:15 +02:00
qml/controlbarcontrols: Create RendererButton
This commit is contained in:
parent
97d60ade06
commit
eff2fe40a9
@ -845,6 +845,7 @@ libqt_plugin_la_QML = \
|
|||||||
gui/qt/player/qml/controlbarcontrols/PreviousButton.qml \
|
gui/qt/player/qml/controlbarcontrols/PreviousButton.qml \
|
||||||
gui/qt/player/qml/controlbarcontrols/QuitButton.qml \
|
gui/qt/player/qml/controlbarcontrols/QuitButton.qml \
|
||||||
gui/qt/player/qml/controlbarcontrols/RandomButton.qml \
|
gui/qt/player/qml/controlbarcontrols/RandomButton.qml \
|
||||||
|
gui/qt/player/qml/controlbarcontrols/RendererButton.qml \
|
||||||
gui/qt/player/qml/controlbarcontrols/RecordButton.qml \
|
gui/qt/player/qml/controlbarcontrols/RecordButton.qml \
|
||||||
gui/qt/player/qml/controlbarcontrols/ReverseButton.qml \
|
gui/qt/player/qml/controlbarcontrols/ReverseButton.qml \
|
||||||
gui/qt/player/qml/controlbarcontrols/SkipBackButton.qml \
|
gui/qt/player/qml/controlbarcontrols/SkipBackButton.qml \
|
||||||
|
@ -74,6 +74,7 @@ public:
|
|||||||
DVD_MENUS_BUTTON,
|
DVD_MENUS_BUTTON,
|
||||||
REVERSE_BUTTON,
|
REVERSE_BUTTON,
|
||||||
BOOKMARK_BUTTON,
|
BOOKMARK_BUTTON,
|
||||||
|
RENDERER_BUTTON,
|
||||||
SPECIAL_MAX,
|
SPECIAL_MAX,
|
||||||
|
|
||||||
WIDGET_SPACER = 0x40,
|
WIDGET_SPACER = 0x40,
|
||||||
|
@ -0,0 +1,45 @@
|
|||||||
|
/*****************************************************************************
|
||||||
|
* Copyright (C) 2021 VLC authors and VideoLAN
|
||||||
|
*
|
||||||
|
* Authors: Benjamin Arnaud <bunjee@omega.gg>
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* ( at your option ) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
|
||||||
|
*****************************************************************************/
|
||||||
|
|
||||||
|
import QtQuick 2.11
|
||||||
|
|
||||||
|
import org.videolan.vlc 0.1
|
||||||
|
|
||||||
|
import "qrc:///widgets/" as Widgets
|
||||||
|
import "qrc:///style/"
|
||||||
|
|
||||||
|
Widgets.IconControlButton {
|
||||||
|
size: VLCStyle.icon_medium
|
||||||
|
|
||||||
|
iconText: VLCIcons.renderer
|
||||||
|
text: I18n.qtr("Renderer")
|
||||||
|
|
||||||
|
// NOTE: We want to pop the menu after the button.
|
||||||
|
onClicked: menu.popup(this.mapToGlobal(width, 0))
|
||||||
|
|
||||||
|
QmlRendererMenu {
|
||||||
|
id: menu
|
||||||
|
|
||||||
|
ctx: MainCtx
|
||||||
|
|
||||||
|
onAboutToShow: playerControlLayout.requestLockUnlockAutoHide(true, menu)
|
||||||
|
onAboutToHide: playerControlLayout.requestLockUnlockAutoHide(false, menu)
|
||||||
|
}
|
||||||
|
}
|
@ -382,6 +382,7 @@
|
|||||||
<file alias="PreviousButton.qml">player/qml/controlbarcontrols/PreviousButton.qml</file>
|
<file alias="PreviousButton.qml">player/qml/controlbarcontrols/PreviousButton.qml</file>
|
||||||
<file alias="QuitButton.qml">player/qml/controlbarcontrols/QuitButton.qml</file>
|
<file alias="QuitButton.qml">player/qml/controlbarcontrols/QuitButton.qml</file>
|
||||||
<file alias="RandomButton.qml">player/qml/controlbarcontrols/RandomButton.qml</file>
|
<file alias="RandomButton.qml">player/qml/controlbarcontrols/RandomButton.qml</file>
|
||||||
|
<file alias="RendererButton.qml">player/qml/controlbarcontrols/RendererButton.qml</file>
|
||||||
<file alias="RecordButton.qml">player/qml/controlbarcontrols/RecordButton.qml</file>
|
<file alias="RecordButton.qml">player/qml/controlbarcontrols/RecordButton.qml</file>
|
||||||
<file alias="ReverseButton.qml">player/qml/controlbarcontrols/ReverseButton.qml</file>
|
<file alias="ReverseButton.qml">player/qml/controlbarcontrols/ReverseButton.qml</file>
|
||||||
<file alias="SkipBackButton.qml">player/qml/controlbarcontrols/SkipBackButton.qml</file>
|
<file alias="SkipBackButton.qml">player/qml/controlbarcontrols/SkipBackButton.qml</file>
|
||||||
|
Loading…
Reference in New Issue
Block a user