Export all scritable contents for VirtualKeyboardDBus

Instead of only the signals, which ends up not exporting the new
willShowOnActive method.
This commit is contained in:
Arjen Hiemstra 2022-01-14 12:16:49 +01:00 committed by Nate Graham
parent 0ecfbb0d1c
commit bd3dd7ce36

View file

@ -18,7 +18,7 @@ VirtualKeyboardDBus::VirtualKeyboardDBus(InputMethod *parent)
{ {
QDBusConnection::sessionBus().registerObject(QStringLiteral("/VirtualKeyboard"), this, QDBusConnection::sessionBus().registerObject(QStringLiteral("/VirtualKeyboard"), this,
QDBusConnection::ExportAllProperties | QDBusConnection::ExportAllProperties |
QDBusConnection::ExportScriptableSignals | //qdbuscpp2xml doesn't support yet properties with NOTIFY QDBusConnection::ExportScriptableContents | //qdbuscpp2xml doesn't support yet properties with NOTIFY
QDBusConnection::ExportAllSlots); QDBusConnection::ExportAllSlots);
connect(parent, &InputMethod::activeChanged, this, &VirtualKeyboardDBus::activeChanged); connect(parent, &InputMethod::activeChanged, this, &VirtualKeyboardDBus::activeChanged);
connect(parent, &InputMethod::enabledChanged, this, &VirtualKeyboardDBus::enabledChanged); connect(parent, &InputMethod::enabledChanged, this, &VirtualKeyboardDBus::enabledChanged);