summaryrefslogtreecommitdiff
path: root/src/qdoc/cppcodeparser.cpp
diff options
context:
space:
mode:
authorPaul Wicking <paul.wicking@qt.io>2021-04-30 09:53:34 +0000
committerPaul Wicking <paul.wicking@qt.io>2021-04-30 15:47:25 +0000
commit1bada8a3cf8b0a3f5660c0a7f92b2f501c11dea8 (patch)
tree4953b41aa92b42da1c00fea86d233add3f08093e /src/qdoc/cppcodeparser.cpp
parent21ff836da58ccf9851dbb4a1cf1c731b9d9d0b62 (diff)
downloadqttools-1bada8a3cf8b0a3f5660c0a7f92b2f501c11dea8.tar.gz
Revert "QDoc: Add \deprecatedsince command"
This reverts commit 1637d91efd8fb389bc09bdaa960f5d9d4f9e0164. Reason for revert: User feedback shows this implementation isn't good enough. Further discussion led to the discovery of a better approach. Task-number: QTBUG-58249 Change-Id: I48e0500ac95745b1ce10a29e77c6fa515b9e048f Reviewed-by: Kai Koehne <kai.koehne@qt.io>
Diffstat (limited to 'src/qdoc/cppcodeparser.cpp')
-rw-r--r--src/qdoc/cppcodeparser.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/qdoc/cppcodeparser.cpp b/src/qdoc/cppcodeparser.cpp
index 7f03f6707..106e5f75d 100644
--- a/src/qdoc/cppcodeparser.cpp
+++ b/src/qdoc/cppcodeparser.cpp
@@ -522,7 +522,7 @@ void CppCodeParser::processMetaCommand(const Doc &doc, const QString &command,
if (node->isFunction()) {
auto *fn = static_cast<FunctionNode *>(node);
// The clang visitor class will have set the
- // qualified name of the overridden function.
+ // qualified name of the ovverridden function.
// If the name of the overridden function isn't
// set, issue a warning.
if (fn->overridesThis().isEmpty() && isWorthWarningAbout(doc)) {
@@ -625,13 +625,7 @@ void CppCodeParser::processMetaCommand(const Doc &doc, const QString &command,
if (node->isQmlType() || node->isJsType())
node->setAbstract(true);
} else if (command == COMMAND_DEPRECATED) {
- node->setStatus(Node::Deprecated);
- } else if (command == COMMAND_DEPRECATED_SINCE) {
- if (!arg.isEmpty())
- node->setDeprecatedSince(arg);
- else
- doc.location().warning(
- QStringLiteral("Missing since version for \\%1").arg(COMMAND_DEPRECATED_SINCE));
+ node->setStatus(Node::Obsolete);
} else if (command == COMMAND_INGROUP || command == COMMAND_INPUBLICGROUP) {
// Note: \ingroup and \inpublicgroup are the same (and now recognized as such).
qdb_->addToGroup(arg, node);