summaryrefslogtreecommitdiff
path: root/src/webchannel/webchannel.pro
diff options
context:
space:
mode:
authorMilian Wolff <milian.wolff@kdab.com>2014-07-03 19:17:02 +0200
committerMilian Wolff <milian.wolff@kdab.com>2014-07-15 11:31:48 +0200
commit003596fad52690127afca0d7025b62bad7fd013e (patch)
tree7b68f95ce3a519018b309990f85bf7e044307fe9 /src/webchannel/webchannel.pro
parent125c5f7dc270ab58e5f876cf8bc8aaf56d9e8f1b (diff)
downloadqtwebchannel-003596fad52690127afca0d7025b62bad7fd013e.tar.gz
Make the QWebChannel QML API publically accessible.
This is required for proper QtWebKit/QtWebEngine integration, as otherwise these modules would have to redo a lot of the QtWebChannel QML API. Furthermore, without this, we could not use the WebChannel.id attached property everywhere, independent of the web browser technology. Change-Id: I032a9326841d505c2f77959a240bbfc71e94b6e8 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/webchannel/webchannel.pro')
-rw-r--r--src/webchannel/webchannel.pro12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/webchannel/webchannel.pro b/src/webchannel/webchannel.pro
index 82bd79f..d368237 100644
--- a/src/webchannel/webchannel.pro
+++ b/src/webchannel/webchannel.pro
@@ -1,5 +1,5 @@
TARGET = QtWebChannel
-QT = core
+QT = core-private
CONFIG += warn_on strict_flags
load(qt_module)
@@ -28,6 +28,16 @@ SOURCES += \
qtHaveModule(qml) {
QT += qml
DEFINES += HAVE_QML=1
+
+ SOURCES += \
+ qqmlwebchannel.cpp \
+ qqmlwebchannelattached.cpp
+
+ PUBLIC_HEADERS += \
+ qqmlwebchannel.h
+
+ PRIVATE_HEADERS += \
+ qqmlwebchannelattached_p.h
}
HEADERS += $$PUBLIC_HEADERS $$PRIVATE_HEADERS