Doc: Get QDoc to not display the \qtvariable if it is empty.

Change-Id: I5cd2cff23b56180e7bfec7cae84104a16f47fc79
Reviewed-by: Martin Smith <martin.smith@digia.com>
bb10
Jerome Pasion 2013-08-02 17:37:17 +02:00 committed by The Qt Project
parent f5841521a4
commit 3ead44fcac
1 changed files with 1 additions and 1 deletions

View File

@ -1936,7 +1936,7 @@ void HtmlGenerator::generateRequisites(InnerNode *inner, CodeMarker *marker)
//add the QT variable to the map
DocNode * moduleNode = qdb_->findModule(classe->moduleName());
if (moduleNode || !moduleNode->qtVariable().isEmpty()) {
if (moduleNode && !moduleNode->qtVariable().isEmpty()) {
text.clear();
text << Atom(Atom::FormattingLeft, ATOM_FORMATTING_TELETYPE)
<< "QT += " + moduleNode->qtVariable()