summaryrefslogtreecommitdiffstats
path: root/shared
diff options
context:
space:
mode:
authorMichael BrĂ¼ning <michael.bruning@digia.com>2013-09-16 16:02:22 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-17 12:18:24 +0200
commit57f8c26c77095d2dc7c5b67f33444add7e7d181a (patch)
tree1d601f7b49a18793b552588218ba9c075b70dab3 /shared
parente0a9f95d5b710664b115a99317fcabd7950686c7 (diff)
Add Qt namespace macros QtWebEngine classes.
This should enable namespaced builds of Qt and QtWebEngine. Change-Id: I4c9d506d864b42a346026b980dcf3777b9680957 Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Diffstat (limited to 'shared')
-rw-r--r--shared/shared_globals.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/shared/shared_globals.h b/shared/shared_globals.h
index 314c7fbf1..6ad97e181 100644
--- a/shared/shared_globals.h
+++ b/shared/shared_globals.h
@@ -43,6 +43,7 @@
#define SHARED_GLOBALS_H
#include "third_party/WebKit/public/platform/WebScreenInfo.h"
+#include <QtGlobal>
#ifdef QT_WEBENGINE_LOGGING
#define QT_NOT_YET_IMPLEMENTED fprintf(stderr, "function %s not implemented! - %s:%d\n", __func__, __FILE__, __LINE__);
@@ -52,7 +53,9 @@
#define QT_NOT_USED Q_UNREACHABLE(); // This will assert in debug.
#endif
+QT_BEGIN_NAMESPACE
class QWindow;
+QT_END_NAMESPACE
void GetScreenInfoFromNativeWindow(QWindow* window, WebKit::WebScreenInfo* results);