summaryrefslogtreecommitdiffstats
path: root/src/core/user_script.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/core/user_script.h
parentd3905d85925a950ca32aa78eead6db7228be1330 (diff)
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/core/user_script.h')
-rw-r--r--src/core/user_script.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/user_script.h b/src/core/user_script.h
index a20ac1898..7aeba9131 100644
--- a/src/core/user_script.h
+++ b/src/core/user_script.h
@@ -68,8 +68,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);