summaryrefslogtreecommitdiff
path: root/src/webenginewidgets/api/qwebenginescript.h
diff options
context:
space:
mode:
authorRobin Burchell <robin.burchell@theqtcompany.com>2015-03-10 13:29:27 +0100
committerRobin Burchell <robin.burchell@viroteck.net>2015-03-12 10:26:00 +0000
commit2cf54e48922a7d379fb7e212966d05bc402e475d (patch)
treea7668dbe5cfa7f58a87a9fc256f2ff8870891f5e /src/webenginewidgets/api/qwebenginescript.h
parentd3905d85925a950ca32aa78eead6db7228be1330 (diff)
downloadqtwebengine-2cf54e48922a7d379fb7e212966d05bc402e475d.tar.gz
UserScript: Rename source property to sourceCode.
The name 'source' is unclear, and doesn't match current conventions in QtQuick (e.g. Image::source). Furthermore, such a property inhibits adding convenience API to fetch a user script from an external URI. Change-Id: I518b3963f64f0986f9e2d08fe7c5f69122372e0c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
Diffstat (limited to 'src/webenginewidgets/api/qwebenginescript.h')
-rw-r--r--src/webenginewidgets/api/qwebenginescript.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/webenginewidgets/api/qwebenginescript.h b/src/webenginewidgets/api/qwebenginescript.h
index 6eba76932..2b03cd06f 100644
--- a/src/webenginewidgets/api/qwebenginescript.h
+++ b/src/webenginewidgets/api/qwebenginescript.h
@@ -72,8 +72,8 @@ public:
QString name() const;
void setName(const QString &);
- QString source() const;
- void setSource(const QString &);
+ QString sourceCode() const;
+ void setSourceCode(const QString &);
InjectionPoint injectionPoint() const;
void setInjectionPoint(InjectionPoint);