qml/controlbarcontrols: Create ReverseButton

This commit is contained in:
Benjamin Arnaud 2022-02-07 18:15:34 +01:00 committed by Jean-Baptiste Kempf
parent e2a35909b4
commit 330f7ad1f6
5 changed files with 41 additions and 0 deletions

View File

@ -844,6 +844,7 @@ libqt_plugin_la_QML = \
gui/qt/player/qml/controlbarcontrols/QuitButton.qml \
gui/qt/player/qml/controlbarcontrols/RandomButton.qml \
gui/qt/player/qml/controlbarcontrols/RecordButton.qml \
gui/qt/player/qml/controlbarcontrols/ReverseButton.qml \
gui/qt/player/qml/controlbarcontrols/SkipBackButton.qml \
gui/qt/player/qml/controlbarcontrols/SkipForwardButton.qml \
gui/qt/player/qml/controlbarcontrols/SlowerButton.qml \

View File

@ -72,6 +72,7 @@ public:
TELETEXT_BUTTONS,
ASPECT_RATIO_COMBOBOX,
DVD_MENUS_BUTTON,
REVERSE_BUTTON,
SPECIAL_MAX,
WIDGET_SPACER = 0x40,

View File

@ -0,0 +1,37 @@
/*****************************************************************************
* Copyright (C) 2022 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
enabled: Player.rewindable
iconText: VLCIcons.play_reverse
text: I18n.qtr("Reverse")
onClicked: Player.reverse()
}

View File

@ -381,6 +381,7 @@
<file alias="QuitButton.qml">player/qml/controlbarcontrols/QuitButton.qml</file>
<file alias="RandomButton.qml">player/qml/controlbarcontrols/RandomButton.qml</file>
<file alias="RecordButton.qml">player/qml/controlbarcontrols/RecordButton.qml</file>
<file alias="ReverseButton.qml">player/qml/controlbarcontrols/ReverseButton.qml</file>
<file alias="SkipBackButton.qml">player/qml/controlbarcontrols/SkipBackButton.qml</file>
<file alias="SkipForwardButton.qml">player/qml/controlbarcontrols/SkipForwardButton.qml</file>
<file alias="SlowerButton.qml">player/qml/controlbarcontrols/SlowerButton.qml</file>

View File

@ -901,6 +901,7 @@ modules/gui/qt/player/qml/controlbarcontrols/PreviousButton.qml
modules/gui/qt/player/qml/controlbarcontrols/QuitButton.qml
modules/gui/qt/player/qml/controlbarcontrols/RandomButton.qml
modules/gui/qt/player/qml/controlbarcontrols/RecordButton.qml
modules/gui/qt/player/qml/controlbarcontrols/ReverseButton.qml
modules/gui/qt/player/qml/controlbarcontrols/SkipBackButton.qml
modules/gui/qt/player/qml/controlbarcontrols/SkipForwardButton.qml
modules/gui/qt/player/qml/controlbarcontrols/SlowerButton.qml