From 2cd5cdfa4a36c5fbeed715297a89bacfa8753ddb Mon Sep 17 00:00:00 2001 From: Ahmad Samir Date: Wed, 17 Jun 2020 13:45:54 +0200 Subject: KDesktopFile: deprecate resource() It is redundant since the parent class, KConfig, has locationType(). Add some API docs for fileName(), even though one could use KConfig::name() from the parent class, I think this would be confusing given a .desktop file has a Name= entry, so fileName() is less ambiguous. These seem to be leftovers from a previous refactor that happened a long time ago. --- src/core/kdesktopfile.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core/kdesktopfile.cpp') diff --git a/src/core/kdesktopfile.cpp b/src/core/kdesktopfile.cpp index d26ed59d..d2823c15 100644 --- a/src/core/kdesktopfile.cpp +++ b/src/core/kdesktopfile.cpp @@ -332,11 +332,13 @@ KDesktopFile *KDesktopFile::copyTo(const QString &file) const return config; } +#if KCONFIGCORE_BUILD_DEPRECATED_SINCE(5, 89) QStandardPaths::StandardLocation KDesktopFile::resource() const { Q_D(const KDesktopFile); return d->resourceType; } +#endif QString KDesktopFile::fileName() const { -- cgit v1.2.1