From a1dfe27955ab2da27551d19500c2d2a01d46e470 Mon Sep 17 00:00:00 2001 From: Paul Wicking Date: Tue, 25 May 2021 15:04:48 +0200 Subject: Doc: Use \deprecated instead of \obsolete Task-number: QTBUG-93990 Change-Id: I4e512354a49dde6678ca89cabc56bc76ba666bb3 Reviewed-by: Edward Welbourne --- src/sql/kernel/qsqlfield.cpp | 6 +++--- src/sql/kernel/qsqlquery.cpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/sql/kernel') diff --git a/src/sql/kernel/qsqlfield.cpp b/src/sql/kernel/qsqlfield.cpp index a4d4309da2..65594b35fe 100644 --- a/src/sql/kernel/qsqlfield.cpp +++ b/src/sql/kernel/qsqlfield.cpp @@ -156,7 +156,7 @@ public: /*! \fn QSqlField::QSqlField(const QString &fieldName, QVariant::Type type, const QString &table) - \obsolete Use the constructor using a QMetaType instead + \deprecated Use the constructor using a QMetaType instead. \overload Constructs an empty field called \a fieldName of variant type \a @@ -419,7 +419,7 @@ void QSqlField::setMetaType(QMetaType type) /*! \fn QVariant::Type QSqlField::type() const - \obsolete Use metaType() instead. + \deprecated Use metaType() instead. Returns the field's type as stored in the database. Note that the actual value might have a different type, @@ -432,7 +432,7 @@ void QSqlField::setMetaType(QMetaType type) /*! \fn void QSqlField::setType(QVariant::Type type) - \obsolete Use setMetaType() instead. + \deprecated Use setMetaType() instead. Set's the field's variant type to \a type. diff --git a/src/sql/kernel/qsqlquery.cpp b/src/sql/kernel/qsqlquery.cpp index b78566e828..86d086c866 100644 --- a/src/sql/kernel/qsqlquery.cpp +++ b/src/sql/kernel/qsqlquery.cpp @@ -251,7 +251,7 @@ QSqlQuery::~QSqlQuery() /*! Constructs a copy of \a other. - \obsolete QSqlQuery cannot be meaningfully copied. Prepared + \deprecated QSqlQuery cannot be meaningfully copied. Prepared statements, bound values and so on will not work correctly, depending on your database driver (for instance, changing the copy will affect the original). Treat QSqlQuery as a move-only type instead. @@ -266,7 +266,7 @@ QSqlQuery::QSqlQuery(const QSqlQuery& other) /*! Assigns \a other to this object. - \obsolete QSqlQuery cannot be meaningfully copied. Prepared + \deprecated QSqlQuery cannot be meaningfully copied. Prepared statements, bound values and so on will not work correctly, depending on your database driver (for instance, changing the copy will affect the original). Treat QSqlQuery as a move-only type instead. -- cgit v1.2.3