KeyboardLayout: Expose the new org.kde.kwin.VirtualKeyboard.visible property

wilder-5.24
Aleix Pol 5 years ago
parent 886292126f
commit f741419c26
  1. 2
      components/keyboardlayout/keyboardlayoutplugin.cpp
  2. 1
      components/keyboardlayout/virtualkeyboard.h

@ -31,7 +31,7 @@ void KeyboardLayoutPlugin::registerTypes(const char *uri)
Q_ASSERT(uri == QLatin1String("org.kde.plasma.workspace.keyboardlayout"));
qmlRegisterType<KeyboardLayout>(uri, 1, 0, "KeyboardLayout");
qmlRegisterSingletonType<OrgKdeKwinVirtualKeyboardInterface>(uri, 1, 0, "KWinVirtualKeyboard", [](QQmlEngine *, QJSEngine *) -> QObject * {
qmlRegisterSingletonType<KwinVirtualKeyboardInterface>(uri, 1, 0, "KWinVirtualKeyboard", [](QQmlEngine *, QJSEngine *) -> QObject * {
return new KwinVirtualKeyboardInterface;
});
}

@ -13,6 +13,7 @@ class KwinVirtualKeyboardInterface : public OrgKdeKwinVirtualKeyboardInterface
Q_OBJECT
Q_PROPERTY(bool active READ active WRITE setActive NOTIFY activeChanged)
Q_PROPERTY(bool enabled READ enabled WRITE setEnabled NOTIFY enabledChanged)
Q_PROPERTY(bool visible READ visible NOTIFY visibleChanged)
public:
KwinVirtualKeyboardInterface();
};

Loading…
Cancel
Save