From 2b8bd1947776c0792a8de6501d8782a9e4d3b2c0 Mon Sep 17 00:00:00 2001 From: hjk Date: Fri, 10 Jan 2025 17:42:47 +0100 Subject: [PATCH] Utils: Give a hint on what to do with FilePath::toString() Change-Id: I3ffad537d7ca91ef038a72363848e623e6d469e6 Reviewed-by: Eike Ziller --- src/libs/utils/filepath.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libs/utils/filepath.h b/src/libs/utils/filepath.h index 02de3b9cca2..9e8c1dcb5c0 100644 --- a/src/libs/utils/filepath.h +++ b/src/libs/utils/filepath.h @@ -315,7 +315,9 @@ public: // FIXME: Avoid. See toSettings, toVariant, toUserOutput, toFSPathString, path, nativePath. QString toUrlishString() const; - [[deprecated]] QString toString() const { return toUrlishString(); } + + [[deprecated("Check the documentation for toUrlishString() and choose a better replacement.")]] + QString toString() const { return toUrlishString(); } bool equalsCaseSensitive(const FilePath &other) const;