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