aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qqmlcodegenerator_p.h
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2014-02-20 12:51:53 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-02 14:48:13 +0100
commita37177dfe48534933b3d62d2ac83f41527dd78e8 (patch)
treed4b16c18f1787e4dc4584b21d21d6e40b715fceb /src/qml/compiler/qqmlcodegenerator_p.h
parent05d285b0bf1a4dae42b083bcadf25510325496fd (diff)
[new compiler] Fix error reporting when trying to set list properties multiple times
Change-Id: Ifcbed45894b739a57873356e8963670084614880 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/compiler/qqmlcodegenerator_p.h')
-rw-r--r--src/qml/compiler/qqmlcodegenerator_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/compiler/qqmlcodegenerator_p.h b/src/qml/compiler/qqmlcodegenerator_p.h
index 7c5e66d7db..d8357f298e 100644
--- a/src/qml/compiler/qqmlcodegenerator_p.h
+++ b/src/qml/compiler/qqmlcodegenerator_p.h
@@ -226,6 +226,7 @@ public:
void appendFunction(QtQml::Function *f);
QString appendBinding(Binding *b, bool isListBinding);
+ bool hasBinding(int nameIndex) const { return bindingNames.contains(nameIndex); }
private:
PoolList<QmlProperty> *properties;