From 5f3792cd32905ba9bc5483f6447b8fc693216bb4 Mon Sep 17 00:00:00 2001 From: Jocelyn Turcotte Date: Fri, 17 Oct 2014 18:14:30 +0200 Subject: [PATCH] Expose a getter for the QSGEnginePrivate This allows getting its underlying QSGContext and QSGRenderContext. Change-Id: If0773d09b6faa360e706949757db1a6ddbe244e1 Reviewed-by: Gunnar Sletta --- src/quick/scenegraph/util/qsgengine_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/quick/scenegraph/util/qsgengine_p.h b/src/quick/scenegraph/util/qsgengine_p.h index 1275ca161e..71906ea149 100644 --- a/src/quick/scenegraph/util/qsgengine_p.h +++ b/src/quick/scenegraph/util/qsgengine_p.h @@ -45,8 +45,8 @@ class QSGRenderContext; class QSGEnginePrivate : public QObjectPrivate { Q_DECLARE_PUBLIC(QSGEngine) - public: + static QSGEnginePrivate *get(QSGEngine *engine) { return engine->d_func(); } QSGEnginePrivate(); QScopedPointer sgContext;