diff options
author | Kevin Wright <kevin.wright@nokia.com> | 2010-08-02 15:43:42 (GMT) |
---|---|---|
committer | Kevin Wright <kevin.wright@nokia.com> | 2010-08-02 15:43:42 (GMT) |
commit | e55fd8c9790863f2d6001bda617a9d87be61f29b (patch) | |
tree | b1c6c9ebbbbe6fe763649739bfc64f6f8b5c179c /demos/qtdemo | |
parent | 6876e18ddfcf3dd3e5fffaa02e23ad667287500e (diff) | |
download | Qt-e55fd8c9790863f2d6001bda617a9d87be61f29b.zip Qt-e55fd8c9790863f2d6001bda617a9d87be61f29b.tar.gz Qt-e55fd8c9790863f2d6001bda617a9d87be61f29b.tar.bz2 |
Modified qtdemo so error does not appear when there is no demo/example description availablei (QTBUG-12522). There is already output when building Qt that a description is missing -- the user does not need to witness an error about ensuring the documentation has been built just because a description has not been contributed.
Diffstat (limited to 'demos/qtdemo')
-rw-r--r-- | demos/qtdemo/examplecontent.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/qtdemo/examplecontent.cpp b/demos/qtdemo/examplecontent.cpp index 19be3e0..65c078d 100644 --- a/demos/qtdemo/examplecontent.cpp +++ b/demos/qtdemo/examplecontent.cpp @@ -91,8 +91,8 @@ QString ExampleContent::loadDescription() if (paragraphs.length() < 1 && Colors::verbose) qDebug() << "- ExampleContent::loadDescription(): Could not load description:" << MenuManager::instance()->info[this->name]["docfile"]; - QString description = Colors::contentColor + - QLatin1String("Could not load description. Ensure that the documentation for Qt is built."); + QString description = Colors::contentColor + QLatin1String(""); + //QLatin1String("Could not load description. Ensure that the documentation for Qt is built."); // QTBUG-12522: If there is no description why show an error to the user when qDebug above communications the issue (if it is indeed an issue at all) when demos are built? for (int p = 0; p < int(paragraphs.length()); ++p) { description = this->extractTextFromParagraph(paragraphs.item(p)); if (this->isSummary(description)) { |