aboutsummaryrefslogtreecommitdiff
path: root/autotests/kdesktopfiletest.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 /autotests/kdesktopfiletest.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 'autotests/kdesktopfiletest.cpp')
-rw-r--r--autotests/kdesktopfiletest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/autotests/kdesktopfiletest.cpp b/autotests/kdesktopfiletest.cpp
index d0a0a262..fd4a5c9e 100644
--- a/autotests/kdesktopfiletest.cpp
+++ b/autotests/kdesktopfiletest.cpp
@@ -62,6 +62,7 @@ void KDesktopFileTest::testRead()
QCOMPARE(df.fileName(), QFileInfo(fileName).canonicalFilePath());
}
+#ifndef KDE_NO_DEPRECATED
void KDesktopFileTest::testReadDirectory()
{
QTemporaryFile file("testReadDirectoryXXXXXX.directory");
@@ -80,6 +81,7 @@ void KDesktopFileTest::testReadDirectory()
QCOMPARE(df.sortOrder(), QStringList() << QString::fromLatin1("2.desktop")
<< QString::fromLatin1("1.desktop"));
}
+#endif
void KDesktopFileTest::testReadLocalized_data()
{