summaryrefslogtreecommitdiffstats
path: root/src/webengine/api/qquickwebengineview_p.h
diff options
context:
space:
mode:
authorPierre Rossi <pierre.rossi@theqtcompany.com>2015-02-03 16:27:54 +0100
committerAndras Becsi <andras.becsi@theqtcompany.com>2015-02-22 11:01:56 +0000
commit9c279bec0cac934f3c8495c8c5ecba8ad59be47d (patch)
tree9d56555278d3de177fb44e05dd8f72c8d5af84fb /src/webengine/api/qquickwebengineview_p.h
parent4ed187a54e6d2a06bbe272e1429757b6572dc6b6 (diff)
QtQuick API for userScripts
QObject-based, allowing the same things as the Widgets API in a declarative fashion. Change-Id: I9c9819b691b2098ec47e0536d47ccd2a950126c2 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
Diffstat (limited to 'src/webengine/api/qquickwebengineview_p.h')
-rw-r--r--src/webengine/api/qquickwebengineview_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/webengine/api/qquickwebengineview_p.h b/src/webengine/api/qquickwebengineview_p.h
index a9f387e87..93e9ad61b 100644
--- a/src/webengine/api/qquickwebengineview_p.h
+++ b/src/webengine/api/qquickwebengineview_p.h
@@ -38,6 +38,7 @@
#define QQUICKWEBENGINEVIEW_P_H
#include <private/qtwebengineglobal_p.h>
+#include "qquickwebenginescript_p.h"
#include <QQuickItem>
QT_BEGIN_NAMESPACE
@@ -67,6 +68,7 @@ class Q_WEBENGINE_PRIVATE_EXPORT QQuickWebEngineView : public QQuickItem {
Q_PROPERTY(QQuickWebEngineSettings *settings READ settings REVISION 1)
Q_PROPERTY(QQuickWebEngineHistory *navigationHistory READ navigationHistory CONSTANT FINAL REVISION 1)
Q_PROPERTY(QQmlWebChannel *webChannel READ webChannel WRITE setWebChannel NOTIFY webChannelChanged REVISION 1)
+ Q_PROPERTY(QQmlListProperty<QQuickWebEngineScript> userScripts READ userScripts FINAL)
Q_ENUMS(NavigationRequestAction);
Q_ENUMS(NavigationType);
Q_ENUMS(LoadStatus);
@@ -145,6 +147,7 @@ public:
QQuickWebEngineProfile *profile() const;
void setProfile(QQuickWebEngineProfile *);
+ QQmlListProperty<QQuickWebEngineScript> userScripts();
QQuickWebEngineSettings *settings() const;
QQmlWebChannel *webChannel();