summaryrefslogtreecommitdiffstats
path: root/src/declarative/util/qdeclarativeconnections.cpp
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-04-30 05:32:43 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-04-30 05:32:43 (GMT)
commit85db980578cb9f1b95be160a4386d9822c6ec6d0 (patch)
tree94db73d854dd559a355207f21aa49c903bcce28a /src/declarative/util/qdeclarativeconnections.cpp
parent77cddec6ea642b073d1d9c017c865e740c0c60bc (diff)
downloadQt-85db980578cb9f1b95be160a4386d9822c6ec6d0.zip
Qt-85db980578cb9f1b95be160a4386d9822c6ec6d0.tar.gz
Qt-85db980578cb9f1b95be160a4386d9822c6ec6d0.tar.bz2
Make QDeclarativeParserStatus method pure virtual to encourage right code.
Fix all code to be right, except multimedia. Currently, it's not *required* that types work without componentComplete, so not vital.
Diffstat (limited to 'src/declarative/util/qdeclarativeconnections.cpp')
-rw-r--r--src/declarative/util/qdeclarativeconnections.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/declarative/util/qdeclarativeconnections.cpp b/src/declarative/util/qdeclarativeconnections.cpp
index 5dd825e..ffa160f 100644
--- a/src/declarative/util/qdeclarativeconnections.cpp
+++ b/src/declarative/util/qdeclarativeconnections.cpp
@@ -57,7 +57,7 @@ QT_BEGIN_NAMESPACE
class QDeclarativeConnectionsPrivate : public QObjectPrivate
{
public:
- QDeclarativeConnectionsPrivate() : target(0), targetSet(false), ignoreUnknownSignals(false), componentcomplete(false) {}
+ QDeclarativeConnectionsPrivate() : target(0), targetSet(false), ignoreUnknownSignals(false), componentcomplete(true) {}
QList<QDeclarativeBoundSignal*> boundsignals;
QObject *target;
@@ -271,6 +271,12 @@ void QDeclarativeConnections::connectSignals()
}
}
+void QDeclarativeConnections::classBegin()
+{
+ Q_D(QDeclarativeConnections);
+ d->componentcomplete=false;
+}
+
void QDeclarativeConnections::componentComplete()
{
Q_D(QDeclarativeConnections);