Changeset View
Changeset View
Standalone View
Standalone View
autotests/kconfigskeletontest.h
Show All 9 Lines | |||||
10 | 10 | | |||
11 | class KConfigSkeletonTest : public QObject | 11 | class KConfigSkeletonTest : public QObject | ||
12 | { | 12 | { | ||
13 | Q_OBJECT | 13 | Q_OBJECT | ||
14 | public: | 14 | public: | ||
15 | 15 | | |||
16 | private Q_SLOTS: | 16 | private Q_SLOTS: | ||
17 | void initTestCase(); | 17 | void initTestCase(); | ||
18 | void cleanupTestCase(); | ||||
18 | void init(); | 19 | void init(); | ||
19 | void cleanup(); | 20 | void cleanup(); | ||
20 | void testSimple(); | 21 | void testSimple(); | ||
21 | void testDefaults(); | 22 | void testDefaults(); | ||
22 | void testRemoveItem(); | 23 | void testRemoveItem(); | ||
23 | void testClear(); | 24 | void testClear(); | ||
24 | void testKConfigDirty(); | 25 | void testKConfigDirty(); | ||
25 | void testSaveRead(); | 26 | void testSaveRead(); | ||
27 | void testDefaultFromFile(); | ||||
28 | void testSetValueToOverridenDefaultCppValue(); | ||||
26 | 29 | | |||
27 | private: | 30 | private: | ||
28 | KConfigSkeleton *s; | 31 | KConfigSkeleton *s; | ||
29 | KConfigSkeleton::ItemBool *itemBool; | 32 | KConfigSkeleton::ItemBool *itemBool; | ||
30 | bool mMyBool; | 33 | bool mMyBool; | ||
31 | QColor mMyColor; | 34 | QColor mMyColor; | ||
32 | QFont mMyFont; | 35 | QFont mMyFont; | ||
33 | QString mMyString; | 36 | QString mMyString; | ||
34 | 37 | | |||
35 | }; | 38 | }; | ||
36 | 39 | | |||
37 | #endif | 40 | #endif |