summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qdeclarativenotifier_p.h
diff options
context:
space:
mode:
authorA-Team <ateam@pad.test.qt.nokia.com>2010-10-07 22:00:16 (GMT)
committerA-Team <ateam@pad.test.qt.nokia.com>2010-10-07 22:00:16 (GMT)
commit8130fcbffe365c0e019f45baae7f1b273d8e17e7 (patch)
tree91cebf29af4336d2010fe66460d586f605a72ab0 /src/declarative/qml/qdeclarativenotifier_p.h
parent0f9d642e105da1644f4ed846a696510f9a9f1daf (diff)
parent161f15e1e79ec5f23244da68340ba1e78f3ac4bb (diff)
downloadQt-8130fcbffe365c0e019f45baae7f1b273d8e17e7.zip
Qt-8130fcbffe365c0e019f45baae7f1b273d8e17e7.tar.gz
Qt-8130fcbffe365c0e019f45baae7f1b273d8e17e7.tar.bz2
Merge branch '4.7-upstream' into 4.7-doc
Diffstat (limited to 'src/declarative/qml/qdeclarativenotifier_p.h')
-rw-r--r--src/declarative/qml/qdeclarativenotifier_p.h17
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();