Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/keyboard_layout_test.cpp
Show All 12 Lines | |||||
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | GNU General Public License for more details. | 15 | GNU General Public License for more details. | ||
16 | 16 | | |||
17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License | ||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | *********************************************************************/ | 19 | *********************************************************************/ | ||
20 | #include "kwin_wayland_test.h" | 20 | #include "kwin_wayland_test.h" | ||
21 | #include "abstract_client.h" | ||||
21 | #include "keyboard_input.h" | 22 | #include "keyboard_input.h" | ||
22 | #include "keyboard_layout.h" | 23 | #include "keyboard_layout.h" | ||
23 | #include "platform.h" | 24 | #include "platform.h" | ||
24 | #include "xdgshellclient.h" | | |||
25 | #include "virtualdesktops.h" | 25 | #include "virtualdesktops.h" | ||
26 | #include "wayland_server.h" | 26 | #include "wayland_server.h" | ||
27 | #include "workspace.h" | 27 | #include "workspace.h" | ||
28 | 28 | | |||
29 | #include <KConfigGroup> | 29 | #include <KConfigGroup> | ||
30 | #include <KGlobalAccel> | 30 | #include <KGlobalAccel> | ||
31 | 31 | | |||
32 | #include <KWayland/Client/surface.h> | 32 | #include <KWayland/Client/surface.h> | ||
Show All 36 Lines | |||||
69 | { | 69 | { | ||
70 | // create DBus signal to reload | 70 | // create DBus signal to reload | ||
71 | QDBusMessage message = QDBusMessage::createSignal(QStringLiteral("/Layouts"), QStringLiteral("org.kde.keyboard"), QStringLiteral("reloadConfig")); | 71 | QDBusMessage message = QDBusMessage::createSignal(QStringLiteral("/Layouts"), QStringLiteral("org.kde.keyboard"), QStringLiteral("reloadConfig")); | ||
72 | QDBusConnection::sessionBus().send(message); | 72 | QDBusConnection::sessionBus().send(message); | ||
73 | } | 73 | } | ||
74 | 74 | | |||
75 | void KeyboardLayoutTest::initTestCase() | 75 | void KeyboardLayoutTest::initTestCase() | ||
76 | { | 76 | { | ||
77 | qRegisterMetaType<KWin::XdgShellClient *>(); | | |||
78 | qRegisterMetaType<KWin::AbstractClient*>(); | 77 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
79 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 78 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
80 | QVERIFY(workspaceCreatedSpy.isValid()); | 79 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
81 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 80 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
82 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 81 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
83 | 82 | | |||
84 | kwinApp()->setConfig(KSharedConfig::openConfig(QString(), KConfig::SimpleConfig)); | 83 | kwinApp()->setConfig(KSharedConfig::openConfig(QString(), KConfig::SimpleConfig)); | ||
85 | kwinApp()->setKxkbConfig(KSharedConfig::openConfig(QString(), KConfig::SimpleConfig)); | 84 | kwinApp()->setKxkbConfig(KSharedConfig::openConfig(QString(), KConfig::SimpleConfig)); | ||
▲ Show 20 Lines • Show All 426 Lines • Show Last 20 Lines |