From 770b4afeed37ddf036dcbc287b68f9f7b151af27 Mon Sep 17 00:00:00 2001 From: Christian Ehrlicher Date: Sun, 20 Jan 2019 21:25:20 +0100 Subject: QtCore: mark obsolete functions as deprecated Mark the following obsolete functions as deprecated so they can be removed with Qt6: - QDataStream::unsetDevice() - QDir &QDir::operator=(const QString &path) - QDir::addResourceSearchPath() - QResource::addSearchPath() - QResource::searchPaths() - QSettings::setSystemIniPath() - QSettings::setUserIniPath() Change-Id: I5edfb2b4ce1ad843fa5fcd5b4c475ab9352b05f7 Reviewed-by: Thiago Macieira --- src/corelib/io/qdir.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/corelib/io/qdir.h') diff --git a/src/corelib/io/qdir.h b/src/corelib/io/qdir.h index 45c59d9e1d..9abb833ab1 100644 --- a/src/corelib/io/qdir.h +++ b/src/corelib/io/qdir.h @@ -105,7 +105,10 @@ public: ~QDir(); QDir &operator=(const QDir &); +#if QT_DEPRECATED_SINCE(5, 13) + QT_DEPRECATED_X("Use QDir::setPath() instead") QDir &operator=(const QString &path); +#endif #ifdef Q_COMPILER_RVALUE_REFS QDir &operator=(QDir &&other) Q_DECL_NOTHROW { swap(other); return *this; } #endif @@ -118,7 +121,10 @@ public: QString absolutePath() const; QString canonicalPath() const; +#if QT_DEPRECATED_SINCE(5, 13) + QT_DEPRECATED_X("Use QDir::addSearchPath() instead") static void addResourceSearchPath(const QString &path); +#endif static void setSearchPaths(const QString &prefix, const QStringList &searchPaths); static void addSearchPath(const QString &prefix, const QString &path); -- cgit v1.2.3