Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/pointer_constraints_test.cpp
Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Line(s) | |||||
70 | void TestPointerConstraints::initTestCase() | 70 | void TestPointerConstraints::initTestCase() | ||
71 | { | 71 | { | ||
72 | qRegisterMetaType<PointerFunc>(); | 72 | qRegisterMetaType<PointerFunc>(); | ||
73 | qRegisterMetaType<KWin::ShellClient*>(); | 73 | qRegisterMetaType<KWin::ShellClient*>(); | ||
74 | qRegisterMetaType<KWin::AbstractClient*>(); | 74 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
75 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 75 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
76 | QVERIFY(workspaceCreatedSpy.isValid()); | 76 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
77 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 77 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
78 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | | |||
79 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 78 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
79 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | ||||
80 | 80 | | |||
81 | // set custom config which disables the OnScreenNotification | 81 | // set custom config which disables the OnScreenNotification | ||
82 | KSharedConfig::Ptr config = KSharedConfig::openConfig(QString(), KConfig::SimpleConfig); | 82 | KSharedConfig::Ptr config = KSharedConfig::openConfig(QString(), KConfig::SimpleConfig); | ||
83 | KConfigGroup group = config->group("OnScreenNotification"); | 83 | KConfigGroup group = config->group("OnScreenNotification"); | ||
84 | group.writeEntry(QStringLiteral("QmlPath"), QString("/does/not/exist.qml")); | 84 | group.writeEntry(QStringLiteral("QmlPath"), QString("/does/not/exist.qml")); | ||
85 | group.sync(); | 85 | group.sync(); | ||
86 | 86 | | |||
87 | kwinApp()->setConfig(config); | 87 | kwinApp()->setConfig(config); | ||
▲ Show 20 Lines • Show All 336 Lines • Show Last 20 Lines |