1
mirror of https://code.videolan.org/videolan/vlc synced 2024-08-27 04:21:53 +02:00

qml: Create DvdMenuButton

This commit is contained in:
Benjamin Arnaud 2022-02-08 16:53:59 +01:00 committed by Jean-Baptiste Kempf
parent ef6b298f2e
commit 5175d5b8d3
4 changed files with 40 additions and 0 deletions

View File

@ -810,6 +810,7 @@ libqt_plugin_la_QML = \
gui/qt/player/qml/controlbarcontrols/BackButton.qml \
gui/qt/player/qml/controlbarcontrols/ChapterNextButton.qml \
gui/qt/player/qml/controlbarcontrols/ChapterPreviousButton.qml \
gui/qt/player/qml/controlbarcontrols/DvdMenuButton.qml \
gui/qt/player/qml/controlbarcontrols/ExpandingSpacerWidget.qml \
gui/qt/player/qml/controlbarcontrols/ExtendedSettingsButton.qml \
gui/qt/player/qml/controlbarcontrols/FasterButton.qml \

View File

@ -0,0 +1,37 @@
/*****************************************************************************
* 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 "qrc:///widgets/" as Widgets
import "qrc:///style/"
import org.videolan.vlc 0.1
Widgets.IconControlButton {
size: VLCStyle.icon_medium
enabled: Player.hasMenu
iconText: VLCIcons.dvd_menu
text: I18n.qtr("Menu")
onClicked: Player.sectionMenu()
}

View File

@ -361,6 +361,7 @@
<file alias="BackButton.qml">player/qml/controlbarcontrols/BackButton.qml</file>
<file alias="ChapterNextButton.qml">player/qml/controlbarcontrols/ChapterNextButton.qml</file>
<file alias="ChapterPreviousButton.qml">player/qml/controlbarcontrols/ChapterPreviousButton.qml</file>
<file alias="DvdMenuButton.qml">player/qml/controlbarcontrols/DvdMenuButton.qml</file>
<file alias="ExpandingSpacerWidget.qml">player/qml/controlbarcontrols/ExpandingSpacerWidget.qml</file>
<file alias="ExtendedSettingsButton.qml">player/qml/controlbarcontrols/ExtendedSettingsButton.qml</file>
<file alias="FasterButton.qml">player/qml/controlbarcontrols/FasterButton.qml</file>

View File

@ -871,6 +871,7 @@ modules/gui/qt/player/qml/controlbarcontrols/AtoBButton.qml
modules/gui/qt/player/qml/controlbarcontrols/BackButton.qml
modules/gui/qt/player/qml/controlbarcontrols/ChapterNextButton.qml
modules/gui/qt/player/qml/controlbarcontrols/ChapterPreviousButton.qml
modules/gui/qt/player/qml/controlbarcontrols/DvdMenuButton.qml
modules/gui/qt/player/qml/controlbarcontrols/ExpandingSpacerWidget.qml
modules/gui/qt/player/qml/controlbarcontrols/ExtendedSettingsButton.qml
modules/gui/qt/player/qml/controlbarcontrols/FasterButton.qml