aboutsummaryrefslogtreecommitdiff
path: root/src/core/kdesktopfile.cpp
diff options
context:
space:
mode:
authorAhmad Samir <a.samirh78@gmail.com>2020-06-17 13:45:54 +0200
committerAhmad Samir <a.samirh78@gmail.com>2021-11-26 19:42:47 +0200
commit2cd5cdfa4a36c5fbeed715297a89bacfa8753ddb (patch)
treea412fbc426e02dcae17586706ffa46d1c69c4ed9 /src/core/kdesktopfile.cpp
parent4c62867b4a38db28c29a063219b9d0f5c7f1cac6 (diff)
downloadkconfig-2cd5cdfa4a36c5fbeed715297a89bacfa8753ddb.tar.gz
kconfig-2cd5cdfa4a36c5fbeed715297a89bacfa8753ddb.tar.bz2
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.
Diffstat (limited to 'src/core/kdesktopfile.cpp')
-rw-r--r--src/core/kdesktopfile.cpp2
1 files changed, 2 insertions, 0 deletions
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
{