diff options
author | David Boddie <david.boddie@nokia.com> | 2011-03-25 13:25:46 (GMT) |
---|---|---|
committer | David Boddie <david.boddie@nokia.com> | 2011-03-25 13:25:46 (GMT) |
commit | 28cfb455074203e5dc0f4a37d67cc3d4dee825ad (patch) | |
tree | 85cad8d9cbf8308ab08cc88a86a51847ba04cdbc /demos/qtdemo | |
parent | d4024ccfa42dffd7d7139591c3e9efdf450a0913 (diff) | |
parent | 3810b99b4cad52696eee9624b5c5995adb17bb39 (diff) | |
download | Qt-28cfb455074203e5dc0f4a37d67cc3d4dee825ad.zip Qt-28cfb455074203e5dc0f4a37d67cc3d4dee825ad.tar.gz Qt-28cfb455074203e5dc0f4a37d67cc3d4dee825ad.tar.bz2 |
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-doc-team
Diffstat (limited to 'demos/qtdemo')
-rw-r--r-- | demos/qtdemo/examplecontent.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/demos/qtdemo/examplecontent.cpp b/demos/qtdemo/examplecontent.cpp index 64737c3..5385259 100644 --- a/demos/qtdemo/examplecontent.cpp +++ b/demos/qtdemo/examplecontent.cpp @@ -83,8 +83,10 @@ QString ExampleContent::loadDescription() int errorLine, errorColumn; QDomDocument exampleDoc; - if (!exampleDoc.setContent(ba, false, &errorMsg, &errorLine, &errorColumn)) { - qDebug() << errorMsg << errorLine << errorColumn; + if (ba.isEmpty()) { + qDebug() << "No documentation found for" << name << "Is the documentation built?"; + } else if (!exampleDoc.setContent(ba, false, &errorMsg, &errorLine, &errorColumn)) { + qDebug() << "Error loading documentation for " << name << ": " << errorMsg << errorLine << errorColumn; } QDomNodeList paragraphs = exampleDoc.elementsByTagName("p"); |