vlc | branch: master | Rohan Rajpal <[email protected]> | Tue Jul 2 17:45:53 2019 +0530| [063b896c1c21bd8112c6dcf176df559af09d7899] | committer: Jean-Baptiste Kempf
qml: Add Editor Dummy Button Visual button to use in the editor Signed-off-by: Jean-Baptiste Kempf <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=063b896c1c21bd8112c6dcf176df559af09d7899 --- modules/gui/qt/Makefile.am | 1 + modules/gui/qt/qml/dialogs/EditorDummyButton.qml | 33 ++++++++++++++++++++++++ modules/gui/qt/vlc.qrc | 1 + 3 files changed, 35 insertions(+) diff --git a/modules/gui/qt/Makefile.am b/modules/gui/qt/Makefile.am index a218dc2c60..1a3d83d1f2 100644 --- a/modules/gui/qt/Makefile.am +++ b/modules/gui/qt/Makefile.am @@ -565,6 +565,7 @@ libqt_plugin_la_QML = \ gui/qt/qml/player/TopBar.qml \ gui/qt/qml/dialogs/Dialogs.qml \ gui/qt/qml/dialogs/ModalDialog.qml \ + gui/qt/qml/dialogs/EditorDummyButton.qml \ gui/qt/qml/utils/DNDLabel.qml \ gui/qt/qml/utils/ToolTipArea.qml \ gui/qt/qml/utils/DrawerExt.qml \ diff --git a/modules/gui/qt/qml/dialogs/EditorDummyButton.qml b/modules/gui/qt/qml/dialogs/EditorDummyButton.qml new file mode 100644 index 0000000000..70349f5b94 --- /dev/null +++ b/modules/gui/qt/qml/dialogs/EditorDummyButton.qml @@ -0,0 +1,33 @@ +/***************************************************************************** + * Copyright (C) 2019 VLC authors and VideoLAN + * + * 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 QtQuick.Controls 2.4 + +import org.videolan.vlc 0.1 + +import "qrc:///style/" + +Label { + color: VLCStyle.colors.buttonText + + font.pixelSize: VLCStyle.icon_medium + font.family: VLCIcons.fontFamily + + verticalAlignment: Text.AlignVCenter + horizontalAlignment: Text.AlignHCenter +} diff --git a/modules/gui/qt/vlc.qrc b/modules/gui/qt/vlc.qrc index ef72a51955..a34b47b9c1 100644 --- a/modules/gui/qt/vlc.qrc +++ b/modules/gui/qt/vlc.qrc @@ -273,5 +273,6 @@ <qresource prefix="/dialogs"> <file alias="Dialogs.qml">qml/dialogs/Dialogs.qml</file> <file alias="ModalDialog.qml">qml/dialogs/ModalDialog.qml</file> + <file alias="EditorDummyButton.qml">qml/dialogs/EditorDummyButton.qml</file> </qresource> </RCC> _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
