summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlmetaproperty.cpp
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-10-11 22:48:10 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-10-11 22:48:10 (GMT)
commit76b29d542e13184da81129ea3f7373ffd71ceedc (patch)
treec18a7af8ae2f70d6fcda5b74cd00161241596beb /src/declarative/qml/qmlmetaproperty.cpp
parentac507b4752dcd065038130d224910a6dc64f8f37 (diff)
parent76448b41bb9c6212d2534f0597f9973c881c77bd (diff)
downloadQt-76b29d542e13184da81129ea3f7373ffd71ceedc.zip
Qt-76b29d542e13184da81129ea3f7373ffd71ceedc.tar.gz
Qt-76b29d542e13184da81129ea3f7373ffd71ceedc.tar.bz2
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'src/declarative/qml/qmlmetaproperty.cpp')
-rw-r--r--src/declarative/qml/qmlmetaproperty.cpp30
1 files changed, 1 insertions, 29 deletions
diff --git a/src/declarative/qml/qmlmetaproperty.cpp b/src/declarative/qml/qmlmetaproperty.cpp
index 7a7e074..8643301 100644
--- a/src/declarative/qml/qmlmetaproperty.cpp
+++ b/src/declarative/qml/qmlmetaproperty.cpp
@@ -698,30 +698,6 @@ QVariant QmlMetaProperty::read() const
return QVariant();
}
-void QmlMetaPropertyPrivate::writeSignalProperty(const QVariant &value)
-{
- QString expr = value.toString();
- const QObjectList &children = object->children();
-
- for (int ii = 0; ii < children.count(); ++ii) {
- QmlBoundSignal *sig = QmlBoundSignal::cast(children.at(ii));
- if (sig && sig->index() == core.coreIndex) {
- if (expr.isEmpty()) {
- sig->disconnect();
- sig->deleteLater();
- } else {
- sig->expression()->setExpression(expr);
- }
- return;
- }
- }
-
- if (!expr.isEmpty()) {
- // XXX scope
- (void *)new QmlBoundSignal(qmlContext(object), expr, object, q->method(), object);
- }
-}
-
QVariant QmlMetaPropertyPrivate::readValueProperty()
{
uint type = q->type();
@@ -1001,11 +977,7 @@ void QmlMetaProperty::write(const QVariant &value, QmlMetaProperty::WriteFlags f
if (!d->object)
return;
- if (type() & SignalProperty) {
-
- d->writeSignalProperty(value);
-
- } else if (d->core.isValid()) {
+ if (type() & Property && d->core.isValid()) {
d->writeValueProperty(value, flags);