[vlc-devel] [PATCH 16/29] qml: add ToolbarEditorDialog loader to Dialogs
Fatih Uzunoglu
fuzun54 at outlook.com
Thu Apr 1 22:22:28 UTC 2021
---
.../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()
+ }
+ }
+ }
}
--
2.27.0
More information about the vlc-devel
mailing list