You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
634 B
21 lines
634 B
/* |
|
SPDX-FileCopyrightText: 2014 Martin Yrjölä <martin.yrjola@gmail.com> |
|
|
|
SPDX-License-Identifier: MIT |
|
*/ |
|
|
|
#include "keyboardlayoutplugin.h" |
|
#include "keyboardlayout.h" |
|
#include "virtualkeyboard.h" |
|
|
|
#include <QQmlEngine> |
|
|
|
void KeyboardLayoutPlugin::registerTypes(const char *uri) |
|
{ |
|
Q_ASSERT(uri == QLatin1String("org.kde.plasma.workspace.keyboardlayout")); |
|
|
|
qmlRegisterType<KeyboardLayout>(uri, 1, 0, "KeyboardLayout"); |
|
qmlRegisterSingletonType<KwinVirtualKeyboardInterface>(uri, 1, 0, "KWinVirtualKeyboard", [](QQmlEngine *, QJSEngine *) -> QObject * { |
|
return new KwinVirtualKeyboardInterface; |
|
}); |
|
}
|
|
|