summaryrefslogtreecommitdiff
path: root/tests/auto
diff options
context:
space:
mode:
authorMilian Wolff <mail@milianw.de>2014-02-06 14:46:30 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-06 20:17:02 +0100
commit95655e87913556e69bdda4a9b3140da4602031e4 (patch)
treeb966ccb163f8b888fbc699c69d7dd3540d705bca /tests/auto
parent0a9ea1ed6f2c201445381be62305a5e8b889f321 (diff)
downloadqtwebsockets-95655e87913556e69bdda4a9b3140da4602031e4.tar.gz
Fix compilation of websocketprotocol test.
The versionFromString method must be exported for usage in the test. Additionally, the metatype of the version enum must be declared. Change-Id: I8e0aef28f9902f274cab43f772667ad5a93c4062 Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/websocketprotocol/tst_websocketprotocol.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/websocketprotocol/tst_websocketprotocol.cpp b/tests/auto/websocketprotocol/tst_websocketprotocol.cpp
index b8948d5..5fae50f 100644
--- a/tests/auto/websocketprotocol/tst_websocketprotocol.cpp
+++ b/tests/auto/websocketprotocol/tst_websocketprotocol.cpp
@@ -51,6 +51,7 @@ QT_USE_NAMESPACE
Q_DECLARE_METATYPE(QWebSocketProtocol::CloseCode)
Q_DECLARE_METATYPE(QWebSocketProtocol::OpCode)
+Q_DECLARE_METATYPE(QWebSocketProtocol::Version)
class tst_WebSocketProtocol : public QObject
{