summaryrefslogtreecommitdiff
path: root/src/qdoc/cppcodemarker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qdoc/cppcodemarker.cpp')
-rw-r--r--src/qdoc/cppcodemarker.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/qdoc/cppcodemarker.cpp b/src/qdoc/cppcodemarker.cpp
index 9846a0dd8..f7b6d99ae 100644
--- a/src/qdoc/cppcodemarker.cpp
+++ b/src/qdoc/cppcodemarker.cpp
@@ -299,9 +299,12 @@ QString CppCodeMarker::markedUpQmlItem(const Node *node, bool summary)
if (summary) {
if (node->isPreliminary())
extra += " (preliminary)";
- else if (node->isDeprecated())
- extra += " (deprecated)";
- else if (node->isObsolete())
+ else if (node->isDeprecated()) {
+ if (const QString &version = node->deprecatedSince(); !version.isEmpty())
+ extra += " (deprecated since " + version + ")";
+ else
+ extra += " (deprecated)";
+ } else if (node->isObsolete())
extra += " (obsolete)";
}