diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-10-07 07:42:08 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-10-07 07:43:22 (GMT) |
commit | 803bdd187ec1673541b7ef8dc69652c10d0e6f88 (patch) | |
tree | 9fd62d77b792ebb6b63229a6bde562534d1bcf0f /src/declarative/qml/qdeclarativenotifier_p.h | |
parent | daade9bb4f1362ec0ced42e8ce2c0d7f42be88c9 (diff) | |
download | Qt-803bdd187ec1673541b7ef8dc69652c10d0e6f88.zip Qt-803bdd187ec1673541b7ef8dc69652c10d0e6f88.tar.gz Qt-803bdd187ec1673541b7ef8dc69652c10d0e6f88.tar.bz2 |
Connect property alias change signals on use
Task-number: QTBUG-14089
Diffstat (limited to 'src/declarative/qml/qdeclarativenotifier_p.h')
-rw-r--r-- | src/declarative/qml/qdeclarativenotifier_p.h | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/declarative/qml/qdeclarativenotifier_p.h b/src/declarative/qml/qdeclarativenotifier_p.h index 0781caf..ad04ba8 100644 --- a/src/declarative/qml/qdeclarativenotifier_p.h +++ b/src/declarative/qml/qdeclarativenotifier_p.h @@ -75,7 +75,7 @@ public: inline bool isConnected(QObject *source, int sourceSignal); inline bool isConnected(QDeclarativeNotifier *); - inline void connect(QObject *source, int sourceSignal); + void connect(QObject *source, int sourceSignal); inline void connect(QDeclarativeNotifier *); inline void disconnect(); @@ -175,21 +175,6 @@ bool QDeclarativeNotifierEndpoint::isConnected(QDeclarativeNotifier *notifier) return NotifierType == type && asNotifier()->notifier == notifier; } -void QDeclarativeNotifierEndpoint::connect(QObject *source, int sourceSignal) -{ - Signal *s = toSignal(); - - if (s->source == source && s->sourceSignal == sourceSignal) - return; - - disconnect(); - - QMetaObject::connect(source, sourceSignal, target, targetMethod); - - s->source = source; - s->sourceSignal = sourceSignal; -} - void QDeclarativeNotifierEndpoint::connect(QDeclarativeNotifier *notifier) { Notifier *n = toNotifier(); |