[vlc-commits] qml: Editor- Remove big button checkbox
Rohan Rajpal
git at videolan.org
Wed Aug 21 16:27:12 CEST 2019
vlc | branch: master | Rohan Rajpal <rohan17089 at iiitd.ac.in> | Tue Aug 13 19:05:06 2019 +0530| [32a737765ecbdb1d496ec21d4a0611ca94871a18] | committer: Jean-Baptiste Kempf
qml: Editor- Remove big button checkbox
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=32a737765ecbdb1d496ec21d4a0611ca94871a18
---
modules/gui/qt/qml/dialogs/EditorDNDDelegate.qml | 4 +---
modules/gui/qt/qml/dialogs/EditorDNDView.qml | 4 +---
modules/gui/qt/qml/dialogs/ToolbarEditor.qml | 21 ---------------------
3 files changed, 2 insertions(+), 27 deletions(-)
diff --git a/modules/gui/qt/qml/dialogs/EditorDNDDelegate.qml b/modules/gui/qt/qml/dialogs/EditorDNDDelegate.qml
index 7aed669f3c..f35707f1a4 100644
--- a/modules/gui/qt/qml/dialogs/EditorDNDDelegate.qml
+++ b/modules/gui/qt/qml/dialogs/EditorDNDDelegate.qml
@@ -114,9 +114,7 @@ MouseArea {
if (drag.source.objectName == "buttonsList")
dndView.model.insert(parent.DelegateModel.itemsIndex,
{"id" : drag.source.mIndex,
- "size": bigButton.checked ?
- PlayerControlBarModel.WIDGET_BIG :
- PlayerControlBarModel.WIDGET_NORMAL})
+ "size": PlayerControlBarModel.WIDGET_NORMAL})
else{
var srcIndex = drag.source.DelegateModel.itemsIndex
var destIndex = parent.DelegateModel.itemsIndex
diff --git a/modules/gui/qt/qml/dialogs/EditorDNDView.qml b/modules/gui/qt/qml/dialogs/EditorDNDView.qml
index e9c302d18d..ce2292d0d9 100644
--- a/modules/gui/qt/qml/dialogs/EditorDNDView.qml
+++ b/modules/gui/qt/qml/dialogs/EditorDNDView.qml
@@ -72,9 +72,7 @@ ListView {
if (drag.source.objectName == "buttonsList"){
playerBtnDND.model.insert(playerBtnDND.count,
{"id" : drag.source.mIndex,
- "size": bigButton.checked ?
- PlayerControlBarModel.WIDGET_BIG :
- PlayerControlBarModel.WIDGET_NORMAL})
+ "size": PlayerControlBarModel.WIDGET_NORMAL})
}
else
playerBtnDND.model.move(
diff --git a/modules/gui/qt/qml/dialogs/ToolbarEditor.qml b/modules/gui/qt/qml/dialogs/ToolbarEditor.qml
index 1e65f9fdce..8f4552500e 100644
--- a/modules/gui/qt/qml/dialogs/ToolbarEditor.qml
+++ b/modules/gui/qt/qml/dialogs/ToolbarEditor.qml
@@ -86,27 +86,6 @@ Rectangle{
ColumnLayout{
anchors.fill: parent
- CheckBox{
- id: bigButton
- text: qsTr("Big Buttons")
- Layout.preferredHeight: VLCStyle.heightBar_small
- Layout.margins: VLCStyle.margin_xxsmall
-
- contentItem: Text {
- text: bigButton.text
- font: bigButton.font
- color: VLCStyle.colors.buttonText
- verticalAlignment: Text.AlignVCenter
- leftPadding: bigButton.indicator.width + bigButton.spacing
- }
- }
-
- Rectangle{
- Layout.preferredHeight: 1
- Layout.fillWidth: true
- color: VLCStyle.colors.buttonText
- }
-
Text {
Layout.margins: VLCStyle.margin_xxsmall
text: qsTr("Drag items below to add them above: ")
More information about the vlc-commits
mailing list