From a9df1c901b7a0a9949fc1b7c52958bf4aa399b6d Mon Sep 17 00:00:00 2001 From: Nico Vertriest Date: Thu, 22 Jul 2021 10:11:27 +0200 Subject: Doc: Ensure deprecated APIs in Qt QML are documented as such Added \deprecated + [version_since] where needed Fixes: QTBUG-95323 Pick-to: 6.2 Change-Id: Ie942e527b6cf60902443c98580167a7cb7ca724d Reviewed-by: Fabian Kosmale --- src/qml/qml/qqmlfileselector.cpp | 4 +++- src/quick/handlers/qquickdraghandler.cpp | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/qml/qml/qqmlfileselector.cpp b/src/qml/qml/qqmlfileselector.cpp index 4b773adc3e..269fbc7ab4 100644 --- a/src/qml/qml/qqmlfileselector.cpp +++ b/src/qml/qml/qqmlfileselector.cpp @@ -180,7 +180,9 @@ void QQmlFileSelector::setExtraSelectors(const QStringList &strings) #if QT_DEPRECATED_SINCE(6, 0) /*! - \deprecated + \deprecated [6.0] The file selector should not be accessed after it + is set. It may be in use. See below for further details. + Gets the QQmlFileSelector currently active on the target \a engine. This method is deprecated. You should not retrieve the files selector from an diff --git a/src/quick/handlers/qquickdraghandler.cpp b/src/quick/handlers/qquickdraghandler.cpp index 233516c3a3..365864bbe9 100644 --- a/src/quick/handlers/qquickdraghandler.cpp +++ b/src/quick/handlers/qquickdraghandler.cpp @@ -371,7 +371,7 @@ void QQuickDragHandler::setActiveTranslation(const QVector2D &trans) /*! \readonly \qmlproperty QVector2D QtQuick::DragHandler::translation - \deprecated Use activeTranslation + \deprecated [6.2] Use activeTranslation */ /*! -- cgit v1.2.3