From c1980dbc51c9aa2770d09850e69529ea2211924b Mon Sep 17 00:00:00 2001 From: David Faure Date: Sun, 16 Mar 2014 23:30:59 +0100 Subject: Add KCoreConfigSkeleton::read() which doesn't call reparseConfiguration. Call it from generated singletons, since the constructor creates a KConfig from a filename, which already loads from disk. This removes the need for using DelayedParsing. REVIEW: 116845 --- autotests/kconfigskeletontest.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'autotests/kconfigskeletontest.cpp') diff --git a/autotests/kconfigskeletontest.cpp b/autotests/kconfigskeletontest.cpp index 31278e76..a25aaf40 100644 --- a/autotests/kconfigskeletontest.cpp +++ b/autotests/kconfigskeletontest.cpp @@ -65,13 +65,12 @@ void KConfigSkeletonTest::testSimple() mMyString.clear(); mMyFont = QFont(); - readConfig(); + read(); QCOMPARE(mMyBool, WRITE_SETTING1); QCOMPARE(mMyColor, WRITE_SETTING2); QCOMPARE(mMyFont, WRITE_SETTING3); QCOMPARE(mMyString, WRITE_SETTING4); - } void KConfigSkeletonTest::testRemoveItem() -- cgit v1.2.1