summaryrefslogtreecommitdiff
path: root/src/imports/webchannel/plugin.cpp
diff options
context:
space:
mode:
authorMilian Wolff <milian.wolff@kdab.com>2014-01-15 16:35:38 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-31 13:02:04 +0100
commita3463f8c873f19f9b2aff66d9a633739bb633128 (patch)
tree0726e3bd92e01d49bc1c9f3bc9151b81fad1495c /src/imports/webchannel/plugin.cpp
parent00a91c1bab7a121af67f279c06710259fedebeb6 (diff)
downloadqtwebchannel-a3463f8c873f19f9b2aff66d9a633739bb633128.tar.gz
Fix compilation when building with namespaced Qt.
Wrap everything in the QtWebChannel module with the Qt namespace or use the Qt namespace where appropriate. Change-Id: I1ef2b2f5eb22ec5e04ca76c034ef8ebf4043b899 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/imports/webchannel/plugin.cpp')
-rw-r--r--src/imports/webchannel/plugin.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/imports/webchannel/plugin.cpp b/src/imports/webchannel/plugin.cpp
index 024a320..92aac79 100644
--- a/src/imports/webchannel/plugin.cpp
+++ b/src/imports/webchannel/plugin.cpp
@@ -44,7 +44,7 @@
#include "qmlwebchannel.h"
-QT_USE_NAMESPACE
+QT_BEGIN_NAMESPACE
class QWebChannelPlugin : public QQmlExtensionPlugin
{
@@ -63,4 +63,6 @@ void QWebChannelPlugin::registerTypes(const char *uri)
}
+QT_END_NAMESPACE
+
#include "plugin.moc"