summaryrefslogtreecommitdiffstats
path: root/tools/qdoc3/doc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/qdoc3/doc.cpp')
-rw-r--r--tools/qdoc3/doc.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/tools/qdoc3/doc.cpp b/tools/qdoc3/doc.cpp
index e27209c..c202d71 100644
--- a/tools/qdoc3/doc.cpp
+++ b/tools/qdoc3/doc.cpp
@@ -2668,13 +2668,18 @@ Text Doc::trimmedBriefText(const QString &className) const
standardWording = false;
}
- if (!w.isEmpty() && (w.first() == "class" || w.first() == "widget"
- || w.first() == "namespace" || w.first() == "header"))
+ if (!w.isEmpty() && ((w.first() == "class") ||
+ (w.first() == "function") ||
+ (w.first() == "macro") ||
+ (w.first() == "widget") ||
+ (w.first() == "namespace") ||
+ (w.first() == "header")))
w.removeFirst();
else {
location().warning(
tr("Nonstandard wording in '\\%1' text for '%2' ("
- "expected 'class', 'widget', 'namespace' or 'header')")
+ "expected 'class', 'function', 'macro', 'widget', "
+ "'namespace' or 'header')")
.arg(COMMAND_BRIEF).arg(className));
standardWording = false;
}