summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@nokia.com>2011-05-09 08:29:02 (GMT)
committerMartin Smith <martin.smith@nokia.com>2011-05-09 08:29:02 (GMT)
commit370b98690aab6d022d9c9c0afafd5552ab6928c1 (patch)
treee2830f9b9fe2e94febd9336e246cc8eb3f582911
parent75aea79ce599d5f62a1642a875774544f548c904 (diff)
downloadQt-370b98690aab6d022d9c9c0afafd5552ab6928c1.zip
Qt-370b98690aab6d022d9c9c0afafd5552ab6928c1.tar.gz
Qt-370b98690aab6d022d9c9c0afafd5552ab6928c1.tar.bz2
doc: Fixed a QML snippet reference
Also updated the Config class for reuse.
-rw-r--r--doc/src/declarative/qmlviews.qdoc2
-rw-r--r--tools/qdoc3/config.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/doc/src/declarative/qmlviews.qdoc b/doc/src/declarative/qmlviews.qdoc
index 53ce4b9..89caa90 100644
--- a/doc/src/declarative/qmlviews.qdoc
+++ b/doc/src/declarative/qmlviews.qdoc
@@ -59,7 +59,7 @@ Views display \l{qml-data-models}{models} onto the screen. A model could be a si
To assign a model to a view, bind the view's \c model property to a model.
\snippet doc/src/snippets/declarative/listview.qml model
-\snippet doc/src/snippets/declarative/listview.qml model
+\snippet doc/src/snippets/declarative/listview.qml view
For more information, consult the \l {QML Data Models} article.
diff --git a/tools/qdoc3/config.cpp b/tools/qdoc3/config.cpp
index eaec327..06931ec 100644
--- a/tools/qdoc3/config.cpp
+++ b/tools/qdoc3/config.cpp
@@ -696,6 +696,7 @@ void Config::load(Location location, const QString& fileName)
} while (isMetaKeyChar(c));
QStringList keys = stack.getExpanded(location);
+ qDebug() << "KEYS:" << keys;
SKIP_SPACES();
if (keys.count() == 1 && keys.first() == "include") {