[vlc-commits] qt: Expose engine & context of the main interface
Rohan Rajpal
git at videolan.org
Wed Aug 21 16:26:50 CEST 2019
vlc | branch: master | Rohan Rajpal <rohan17089 at iiitd.ac.in> | 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 <jb at videolan.org>
> 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 */
More information about the vlc-commits
mailing list