summaryrefslogtreecommitdiffstats
path: root/src/webengine/api/qtwebengineglobal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/webengine/api/qtwebengineglobal.cpp')
-rw-r--r--src/webengine/api/qtwebengineglobal.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/webengine/api/qtwebengineglobal.cpp b/src/webengine/api/qtwebengineglobal.cpp
index 0a1d6a449..baa335740 100644
--- a/src/webengine/api/qtwebengineglobal.cpp
+++ b/src/webengine/api/qtwebengineglobal.cpp
@@ -45,6 +45,10 @@
#include <QThread>
#include <private/qopenglcontext_p.h>
+QT_BEGIN_NAMESPACE
+
+namespace QtWebEngine {
+
static QOpenGLContext *shareContext;
static void deleteShareContext()
@@ -53,7 +57,7 @@ static void deleteShareContext()
shareContext = 0;
}
-void QWebEngine::initialize()
+void initialize()
{
QCoreApplication *app = QCoreApplication::instance();
if (!app) {
@@ -73,4 +77,6 @@ void QWebEngine::initialize()
qAddPostRoutine(deleteShareContext);
QOpenGLContextPrivate::setGlobalShareContext(shareContext);
}
+} // namespace QtWebEngine
+QT_END_NAMESPACE