2023-11-05 23:09:33 +00:00
|
|
|
// SPDX-FileCopyrightText: 2022-2023 Devin Lin <devin@kde.org>
|
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2022-03-17 04:33:13 +00:00
|
|
|
|
|
|
|
|
#include "screenrotationplugin.h"
|
|
|
|
|
|
|
|
|
|
#include <QQmlContext>
|
|
|
|
|
#include <QQuickItem>
|
|
|
|
|
|
|
|
|
|
#include "screenrotationutil.h"
|
|
|
|
|
|
|
|
|
|
void ScreenRotationPlugin::registerTypes(const char *uri)
|
|
|
|
|
{
|
|
|
|
|
Q_ASSERT(QLatin1String(uri) == QLatin1String("org.kde.plasma.quicksetting.screenrotation"));
|
|
|
|
|
|
|
|
|
|
qmlRegisterSingletonType<ScreenRotationUtil>(uri, 1, 0, "ScreenRotationUtil", [](QQmlEngine *, QJSEngine *) {
|
|
|
|
|
return new ScreenRotationUtil;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//#include "moc_screenrotationplugin.cpp"
|