From a3463f8c873f19f9b2aff66d9a633739bb633128 Mon Sep 17 00:00:00 2001 From: Milian Wolff Date: Wed, 15 Jan 2014 16:35:38 +0100 Subject: 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 --- src/webchannel/qmetaobjectpublisher.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/webchannel/qmetaobjectpublisher.cpp') diff --git a/src/webchannel/qmetaobjectpublisher.cpp b/src/webchannel/qmetaobjectpublisher.cpp index 5bfc7a9..bd2a22b 100644 --- a/src/webchannel/qmetaobjectpublisher.cpp +++ b/src/webchannel/qmetaobjectpublisher.cpp @@ -53,6 +53,8 @@ #include #endif +QT_BEGIN_NAMESPACE + namespace { const QString KEY_SIGNALS = QStringLiteral("signals"); const QString KEY_METHODS = QStringLiteral("methods"); @@ -558,3 +560,5 @@ void QMetaObjectPublisher::timerEvent(QTimerEvent *event) QObject::timerEvent(event); } } + +QT_END_NAMESPACE -- cgit v1.2.1