summaryrefslogtreecommitdiff
path: root/rockworkd/libpebble/jskit/jskitpebble.h
diff options
context:
space:
mode:
Diffstat (limited to 'rockworkd/libpebble/jskit/jskitpebble.h')
-rw-r--r--rockworkd/libpebble/jskit/jskitpebble.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/rockworkd/libpebble/jskit/jskitpebble.h b/rockworkd/libpebble/jskit/jskitpebble.h
index c461adb..836a08f 100644
--- a/rockworkd/libpebble/jskit/jskitpebble.h
+++ b/rockworkd/libpebble/jskit/jskitpebble.h
@@ -32,8 +32,9 @@ public:
Q_INVOKABLE void openURL(const QUrl &url);
Q_INVOKABLE QJSValue createXMLHttpRequest();
+#if QT_VERSION >= 0x050300
Q_INVOKABLE QJSValue createWebSocket(const QString &url, const QJSValue &protocols=QJSValue{});
-
+#endif
void invokeCallbacks(const QString &type, const QJSValueList &args = QJSValueList());
private: