summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmetaobjectbuilder.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-11-17 04:54:37 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-11-17 04:54:37 (GMT)
commit5b7957fa3b728ff8a949ab35e332013bbcbfeeba (patch)
tree13f3a9d206a14a5595f7b854697a3b8e304a524c /src/declarative/qml/qmetaobjectbuilder.cpp
parent987819bf3d28e18a51ad9f654bf25903650d7ee4 (diff)
downloadQt-5b7957fa3b728ff8a949ab35e332013bbcbfeeba.zip
Qt-5b7957fa3b728ff8a949ab35e332013bbcbfeeba.tar.gz
Qt-5b7957fa3b728ff8a949ab35e332013bbcbfeeba.tar.bz2
QMetaObjectBuilder tests
Diffstat (limited to 'src/declarative/qml/qmetaobjectbuilder.cpp')
-rw-r--r--src/declarative/qml/qmetaobjectbuilder.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/declarative/qml/qmetaobjectbuilder.cpp b/src/declarative/qml/qmetaobjectbuilder.cpp
index c2f5659..c421c76 100644
--- a/src/declarative/qml/qmetaobjectbuilder.cpp
+++ b/src/declarative/qml/qmetaobjectbuilder.cpp
@@ -921,9 +921,10 @@ void QMetaObjectBuilder::removeMethod(int index)
d->methods.removeAt(index);
for (int prop = 0; prop < d->properties.size(); ++prop) {
// Adjust the indices of property notify signal references.
- if (d->properties[prop].notifySignal == index)
+ if (d->properties[prop].notifySignal == index) {
d->properties[prop].notifySignal = -1;
- else if (d->properties[prop].notifySignal > index)
+ d->properties[prop].setFlag(Notify, false);
+ } else if (d->properties[prop].notifySignal > index)
(d->properties[prop].notifySignal)--;
}
}