autotests: Fix InputMethodTest

Currently, the test fails because the d-bus api was changed recently.
Use InputMethod::setEnabled() method to enable input method support.
This commit is contained in:
Vlad Zahorodnii 2021-04-23 22:08:29 +03:00
parent c894956bba
commit 9ad83dafe6

View file

@ -90,11 +90,7 @@ void InputMethodTest::init()
screens()->setCurrent(0);
KWin::Cursors::self()->mouse()->setPos(QPoint(512, 512));
const QDBusMessage message = QDBusMessage::createMethodCall(QStringLiteral("org.kde.kwin.testvirtualkeyboard"),
QStringLiteral("/VirtualKeyboard"),
QStringLiteral("org.kde.kwin.VirtualKeyboard"),
"enable");
QDBusConnection::sessionBus().call(message);
InputMethod::self()->setEnabled(true);
}
void InputMethodTest::cleanup()