[vlc-devel] [PATCH 13/16] qt: Expose engine & context of the main interface

Rohan Rajpal rohan17089 at iiitd.ac.in
Wed Jul 31 14:30:53 CEST 2019


Expose to be able to make native dialogs.
---
 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 */
-- 
2.17.1



More information about the vlc-devel mailing list