Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/screenedge_client_show_test.cpp
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Line(s) | |||||
52 | void ScreenEdgeClientShowTest::initTestCase() | 52 | void ScreenEdgeClientShowTest::initTestCase() | ||
53 | { | 53 | { | ||
54 | qRegisterMetaType<KWin::ShellClient*>(); | 54 | qRegisterMetaType<KWin::ShellClient*>(); | ||
55 | qRegisterMetaType<KWin::AbstractClient*>(); | 55 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
56 | qRegisterMetaType<KWin::Deleted*>(); | 56 | qRegisterMetaType<KWin::Deleted*>(); | ||
57 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 57 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
58 | QVERIFY(workspaceCreatedSpy.isValid()); | 58 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
59 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 59 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
60 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | | |||
61 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 60 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
61 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | ||||
62 | 62 | | |||
63 | // set custom config which disable touch edge | 63 | // set custom config which disable touch edge | ||
64 | KSharedConfig::Ptr config = KSharedConfig::openConfig(QString(), KConfig::SimpleConfig); | 64 | KSharedConfig::Ptr config = KSharedConfig::openConfig(QString(), KConfig::SimpleConfig); | ||
65 | KConfigGroup group = config->group("TabBox"); | 65 | KConfigGroup group = config->group("TabBox"); | ||
66 | group.writeEntry(QStringLiteral("TouchBorderActivate"), "9"); | 66 | group.writeEntry(QStringLiteral("TouchBorderActivate"), "9"); | ||
67 | group.sync(); | 67 | group.sync(); | ||
68 | 68 | | |||
69 | kwinApp()->setConfig(config); | 69 | kwinApp()->setConfig(config); | ||
▲ Show 20 Lines • Show All 227 Lines • Show Last 20 Lines |