equal
deleted
inserted
replaced
89 |
89 |
90 QDomNodeList paragraphs = exampleDoc.elementsByTagName("p"); |
90 QDomNodeList paragraphs = exampleDoc.elementsByTagName("p"); |
91 if (paragraphs.length() < 1 && Colors::verbose) |
91 if (paragraphs.length() < 1 && Colors::verbose) |
92 qDebug() << "- ExampleContent::loadDescription(): Could not load description:" |
92 qDebug() << "- ExampleContent::loadDescription(): Could not load description:" |
93 << MenuManager::instance()->info[this->name]["docfile"]; |
93 << MenuManager::instance()->info[this->name]["docfile"]; |
94 QString description = Colors::contentColor + |
94 QString description = Colors::contentColor + QLatin1String(""); |
95 QLatin1String("Could not load description. Ensure that the documentation for Qt is built."); |
95 //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? |
96 for (int p = 0; p < int(paragraphs.length()); ++p) { |
96 for (int p = 0; p < int(paragraphs.length()); ++p) { |
97 description = this->extractTextFromParagraph(paragraphs.item(p)); |
97 description = this->extractTextFromParagraph(paragraphs.item(p)); |
98 if (this->isSummary(description)) { |
98 if (this->isSummary(description)) { |
99 break; |
99 break; |
100 } |
100 } |