demos/qtdemo/examplecontent.cpp
changeset 37 758a864f9613
parent 33 3e2da88830cd
equal deleted inserted replaced
36:ef0373b55136 37:758a864f9613
    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         }