aboutsummaryrefslogtreecommitdiff
path: root/autotests/kconfigskeletontest.cpp
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2014-03-16 23:30:59 +0100
committerDavid Faure <faure@kde.org>2014-03-23 23:00:03 +0100
commitc1980dbc51c9aa2770d09850e69529ea2211924b (patch)
tree2bbccf3cdebbd6d1149eb1ae615c832570cfa000 /autotests/kconfigskeletontest.cpp
parent41ccd7bcd61c478a4243165b1df0c48e2ecad0df (diff)
downloadkconfig-c1980dbc51c9aa2770d09850e69529ea2211924b.tar.gz
kconfig-c1980dbc51c9aa2770d09850e69529ea2211924b.tar.bz2
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
Diffstat (limited to 'autotests/kconfigskeletontest.cpp')
-rw-r--r--autotests/kconfigskeletontest.cpp3
1 files changed, 1 insertions, 2 deletions
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()