aboutsummaryrefslogtreecommitdiff
path: root/autotests/kdesktopfiletest.h
diff options
context:
space:
mode:
authorMartin Gräßlin <mgraesslin@kde.org>2014-06-05 14:05:44 +0200
committerMartin Gräßlin <mgraesslin@kde.org>2014-06-12 07:06:07 +0200
commit988f09bb051dca0437ecec431ee44ed5b4a560d8 (patch)
treee86c5d2303b0fc1ee4c68ac3dd59ba326c464af1 /autotests/kdesktopfiletest.h
parent0ed55dfa5d25bdcbef24f1b06be34467b620ae99 (diff)
downloadkconfig-988f09bb051dca0437ecec431ee44ed5b4a560d8.tar.gz
kconfig-988f09bb051dca0437ecec431ee44ed5b4a560d8.tar.bz2
Fix locale-aware reading in KDesktopFile
The underlying KConfig used QLocale::name() for getting the locale aware part. But this returns "de_DE" while the desktop files store "de". In addition it constructs a QLocale object instead of using the system locale. This has the advantage that the usage of QLocale::setDafault() gets honored by KConfig. REVIEW: 118564
Diffstat (limited to 'autotests/kdesktopfiletest.h')
-rw-r--r--autotests/kdesktopfiletest.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/autotests/kdesktopfiletest.h b/autotests/kdesktopfiletest.h
index d57351fd..f854d6cc 100644
--- a/autotests/kdesktopfiletest.h
+++ b/autotests/kdesktopfiletest.h
@@ -26,6 +26,7 @@ class KDesktopFileTest : public QObject
Q_OBJECT
private Q_SLOTS:
void testRead();
+ void testReadLocalized();
void testUnsuccessfulTryExec();
void testSuccessfulTryExec();
void testActionGroup();