diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2016-06-09 10:24:54 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2016-06-10 07:39:51 +0000 |
commit | a5febdbba3807e1eb8fff0b0c3bae657d3e906e7 (patch) | |
tree | 663ff59859dda57a9d6c12421924061ad55458a6 /src | |
parent | cd0efef04bd45eca6cc72b5a000e4e5586153290 (diff) |
QmlIncubator: correct documentation snippet about waiting for Ready
It makes more sense to process events until the incubator is Ready
rather than while it's already Ready.
Change-Id: If8b0c5057dd88ffdbb2dd39f53b5b9676d0b9d19
Reviewed-by: Paolo Angelelli <paolo.angelelli@theqtcompany.com>
Reviewed-by: Matthew Vogt <matthew.vogt@qinetic.com.au>
Diffstat (limited to 'src')
-rw-r--r-- | src/qml/qml/qqmlincubator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlincubator.cpp b/src/qml/qml/qqmlincubator.cpp index a568ae440c..e65760a09f 100644 --- a/src/qml/qml/qqmlincubator.cpp +++ b/src/qml/qml/qqmlincubator.cpp @@ -434,7 +434,7 @@ example shows a simple use of QQmlIncubator. QQmlIncubator incubator; component->create(incubator); -while (incubator.isReady()) { +while (!incubator.isReady()) { QCoreApplication::processEvents(QEventLoop::AllEvents, 50); } |