[vlc-commits] qml: add ToolbarEditorDialog loader to Dialogs

Fatih Uzunoglu git at videolan.org
Tue Apr 6 09:54:56 UTC 2021


vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | Fri Apr  2 01:22:28 2021 +0300| [a7e2ab7df72d9ab9eccbbaa3c21736dab5dce00e] | committer: Pierre Lamot

qml: add ToolbarEditorDialog loader to Dialogs

Signed-off-by: Pierre Lamot <pierre at videolabs.io>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a7e2ab7df72d9ab9eccbbaa3c21736dab5dce00e
---

 modules/gui/qt/dialogs/dialogs/qml/Dialogs.qml | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/modules/gui/qt/dialogs/dialogs/qml/Dialogs.qml b/modules/gui/qt/dialogs/dialogs/qml/Dialogs.qml
index af6e110203..230aaaf56d 100644
--- a/modules/gui/qt/dialogs/dialogs/qml/Dialogs.qml
+++ b/modules/gui/qt/dialogs/dialogs/qml/Dialogs.qml
@@ -372,4 +372,27 @@ Item {
         rootWindow: root.bgContent
         onAboutToHide: restoreFocus()
     }
+
+    Loader {
+        id: toolbarEditorDialogLoader
+        active: false
+        source: "qrc:///dialogs/ToolbarEditorDialog.qml"
+
+        Connections {
+            target: toolbarEditorDialogLoader.item
+
+            onUnload: {
+                toolbarEditorDialogLoader.active = false
+            }
+        }
+
+        Connections {
+            target: dialogProvider
+
+            onShowToolbarEditorDialog: {
+                toolbarEditorDialogLoader.active = true
+                toolbarEditorDialogLoader.item.open()
+            }
+        }
+    }
 }



More information about the vlc-commits mailing list