summaryrefslogtreecommitdiff
path: root/examples/webchannel/shared/websockettransport.h
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@qt.io>2017-08-28 13:04:34 +0200
committerKai Koehne <kai.koehne@qt.io>2017-08-29 09:36:27 +0000
commit022b4392f6ea5586101f68173b0f8b7868e63586 (patch)
tree14c06a2cff39db14e2b61c8ca46edb2b90609d57 /examples/webchannel/shared/websockettransport.h
parentb5229df6a08a902b11a2fc9529af6385f4d985d5 (diff)
downloadqtwebchannel-022b4392f6ea5586101f68173b0f8b7868e63586.tar.gz
Examples: Do not put example code in Qt namespace
Instead just wrap forward-declared Qt classes. See also https://wiki.qt.io/Writing_Qt_Examples Change-Id: I3707bb6ee5577e49a6b860e8f1c21b6aaf6405c2 Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
Diffstat (limited to 'examples/webchannel/shared/websockettransport.h')
-rw-r--r--examples/webchannel/shared/websockettransport.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/webchannel/shared/websockettransport.h b/examples/webchannel/shared/websockettransport.h
index 44cb92e..7158aa5 100644
--- a/examples/webchannel/shared/websockettransport.h
+++ b/examples/webchannel/shared/websockettransport.h
@@ -54,8 +54,9 @@
#include <QtWebChannel/QWebChannelAbstractTransport>
QT_BEGIN_NAMESPACE
-
class QWebSocket;
+QT_END_NAMESPACE
+
class WebSocketTransport : public QWebChannelAbstractTransport
{
Q_OBJECT
@@ -72,6 +73,4 @@ private:
QWebSocket *m_socket;
};
-QT_END_NAMESPACE
-
#endif // WEBSOCKETTRANSPORT_H