mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-02-12 10:15:54 +00:00
22 lines
634 B
C++
22 lines
634 B
C++
/*
|
|
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;
|
|
});
|
|
}
|