summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Rossi <pierre.rossi@nokia.com>2010-11-16 11:53:13 (GMT)
committerPierre Rossi <pierre.rossi@nokia.com>2010-11-16 12:12:44 (GMT)
commitce06345c23d0f66bfa9cb5da1279a9efcb002474 (patch)
tree8f7e7b486ce8c876f9bda4fc35ad45928be9ae4c
parent13d471d63293b575ab6d5a6bf4abd02a69f07258 (diff)
downloadQt-ce06345c23d0f66bfa9cb5da1279a9efcb002474.zip
Qt-ce06345c23d0f66bfa9cb5da1279a9efcb002474.tar.gz
Qt-ce06345c23d0f66bfa9cb5da1279a9efcb002474.tar.bz2
Doc: fix a typo in QML/Qt UI integration
Reviewed-by: Geir Vattekar
-rw-r--r--doc/src/declarative/integrating.qdoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/declarative/integrating.qdoc b/doc/src/declarative/integrating.qdoc
index 682f792..7028585 100644
--- a/doc/src/declarative/integrating.qdoc
+++ b/doc/src/declarative/integrating.qdoc
@@ -47,7 +47,7 @@ qmlView->setSource(QUrl::fromLocalFile("myqml.qml"));
QWidget *widget = myExistingWidget();
QVBoxLayout *layout = new QVBoxLayout(widget);
-widget->addWidget(qmlView);
+layout->addWidget(qmlView);
\endcode
The one drawback to this approach is that QDeclarativeView is slower to initialize