vlc | branch: master | Rohan Rajpal <[email protected]> | Tue Jul 30 
16:41:32 2019 +0530| [70f6b5752e86bc3a304ca147c30ac35533d75a80] | committer: 
Jean-Baptiste Kempf

qt: Expose engine & context of the main interface

Expose to be able to make native dialogs.

Signed-off-by: Jean-Baptiste Kempf <[email protected]>

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

 modules/gui/qt/main_interface.hpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/gui/qt/main_interface.hpp 
b/modules/gui/qt/main_interface.hpp
index b93e075f40..bd3b917661 100644
--- a/modules/gui/qt/main_interface.hpp
+++ b/modules/gui/qt/main_interface.hpp
@@ -93,7 +93,9 @@ private:
     static void requestVideoFullScreen( struct vout_window_t *, const char * );
 
 public:
+    QQmlContext* getRootCtx() { return mediacenterView->rootContext(); }
     QQuickWindow* getRootQuickWindow();
+    QQmlEngine* getEngine(){ return mediacenterView->engine(); }
     VideoSurfaceProvider* getVideoSurfaceProvider() const;
 
     /* Getters */

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to