aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/CMakeLists.txt2
-rw-r--r--src/core/kdesktopfile.cpp2
-rw-r--r--src/core/kdesktopfile.h9
3 files changed, 12 insertions, 1 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
index 6c242253..c91dd040 100644
--- a/src/core/CMakeLists.txt
+++ b/src/core/CMakeLists.txt
@@ -32,7 +32,7 @@ ecm_generate_export_header(KF5ConfigCore
GROUP_BASE_NAME KF
VERSION ${KF_VERSION}
DEPRECATED_BASE_VERSION 0
- DEPRECATION_VERSIONS 4.0 5.0 5.24 5.42 5.82
+ DEPRECATION_VERSIONS 4.0 5.0 5.24 5.42 5.82 5.89
EXCLUDE_DEPRECATED_BEFORE_AND_AT ${EXCLUDE_DEPRECATED_BEFORE_AND_AT}
)
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
{
diff --git a/src/core/kdesktopfile.h b/src/core/kdesktopfile.h
index 5cd739f1..445d98f6 100644
--- a/src/core/kdesktopfile.h
+++ b/src/core/kdesktopfile.h
@@ -238,9 +238,18 @@ public:
*/
KDesktopFile *copyTo(const QString &file) const;
+ /**
+ * Returns the name of the .desktop file that was used to construct this KDesktopFile.
+ */
QString fileName() const;
+#if KCONFIGCORE_ENABLE_DEPRECATED_SINCE(5, 89)
+ /**
+ * @deprecated Since 5.89, use locationType() instead.
+ */
+ KCONFIGCORE_DEPRECATED_VERSION(5, 89, "Use locationType() instead.")
QStandardPaths::StandardLocation resource() const;
+#endif
private:
Q_DISABLE_COPY(KDesktopFile)