aboutsummaryrefslogtreecommitdiff
path: root/src/core/kdesktopfile.cpp
diff options
context:
space:
mode:
authorAlexander Volkov <a.volkov@rusbitech.ru>2017-12-06 13:33:48 +0300
committerAlexander Volkov <a.volkov@rusbitech.ru>2017-12-06 13:55:18 +0300
commita69d8e562b6e91844f7e51b0b6c0545cc54ae840 (patch)
treea13313fc9d1a01047a10406f746a5da01d8a2c7a /src/core/kdesktopfile.cpp
parentd328dd6ac7250c4453ff2dc5d8c9c13ac3b236bc (diff)
downloadkconfig-a69d8e562b6e91844f7e51b0b6c0545cc54ae840.tar.gz
kconfig-a69d8e562b6e91844f7e51b0b6c0545cc54ae840.tar.bz2
Deprecate KDesktopFile::sortOrder()
Summary: The SortOrder key is deprecated by the Desktop Entry Specification: https://standards.freedesktop.org/desktop-entry-spec/latest/apc.html Reviewers: dfaure, #frameworks Reviewed By: dfaure Subscribers: #frameworks Tags: #frameworks Differential Revision: https://phabricator.kde.org/D9224
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 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 ); }