Changeset View
Changeset View
Standalone View
Standalone View
shell/autotests/screenpooltest.cpp
Show All 39 Lines | 35 | private Q_SLOTS: | |||
---|---|---|---|---|---|
40 | void testPrimarySwap(); | 40 | void testPrimarySwap(); | ||
41 | 41 | | |||
42 | private: | 42 | private: | ||
43 | ScreenPool *m_screenPool; | 43 | ScreenPool *m_screenPool; | ||
44 | }; | 44 | }; | ||
45 | 45 | | |||
46 | void ScreenPoolTest::initTestCase() | 46 | void ScreenPoolTest::initTestCase() | ||
47 | { | 47 | { | ||
48 | QStandardPaths::enableTestMode(true); | 48 | QStandardPaths::setTestModeEnabled(true); | ||
49 | 49 | | |||
50 | KConfigGroup cg(KSharedConfig::openConfig(), QStringLiteral("ScreenConnectors")); | 50 | KConfigGroup cg(KSharedConfig::openConfig(), QStringLiteral("ScreenConnectors")); | ||
51 | cg.deleteGroup(); | 51 | cg.deleteGroup(); | ||
52 | cg.sync(); | 52 | cg.sync(); | ||
53 | m_screenPool = new ScreenPool(KSharedConfig::openConfig(), this); | 53 | m_screenPool = new ScreenPool(KSharedConfig::openConfig(), this); | ||
54 | m_screenPool->load(); | 54 | m_screenPool->load(); | ||
55 | } | 55 | } | ||
56 | 56 | | |||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |