aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/kdesktopfile.cpp2
-rw-r--r--src/core/kdesktopfile.h7
2 files changed, 8 insertions, 1 deletions
diff --git a/src/core/kdesktopfile.cpp b/src/core/kdesktopfile.cpp
index 8d53ece4..b0b6a878 100644
--- a/src/core/kdesktopfile.cpp
+++ b/src/core/kdesktopfile.cpp
@@ -326,12 +326,14 @@ bool KDesktopFile::tryExec() const
//QString
//KDesktopFile::resource() const { return backEnd->resource(); }
+#ifndef KDE_NO_DEPRECATED
QStringList
KDesktopFile::sortOrder() const
{
Q_D(const KDesktopFile);
return d->desktopGroup.readXdgListEntry("SortOrder");
}
+#endif
//void KDesktopFile::virtual_hook( int id, void* data )
//{ KConfig::virtual_hook( id, data ); }
diff --git a/src/core/kdesktopfile.h b/src/core/kdesktopfile.h
index f3b293fa..ca21bc85 100644
--- a/src/core/kdesktopfile.h
+++ b/src/core/kdesktopfile.h
@@ -214,11 +214,16 @@ public:
*/
QString readDocPath() const;
+#ifndef KDE_NO_DEPRECATED
/**
* Returns the entry of the "SortOrder=" entry.
* @return the value of the "SortOrder=" entry.
+ * @deprecated since 5.42
+ * SortOrder was used to specify the order of menu items, but
+ * the Desktop Menu Specification defines another mechanism for it.
*/
- QStringList sortOrder() const;
+ KCONFIGCORE_DEPRECATED QStringList sortOrder() const;
+#endif
/**
* Whether the entry should be suppressed in menus.