File indexing completed on 2024-05-19 09:29:22
0001 // SPDX-FileCopyrightText: 2022-2023 Devin Lin <devin@kde.org> 0002 // SPDX-License-Identifier: GPL-2.0-or-later 0003 0004 #include "screenrotationplugin.h" 0005 0006 #include <QQmlContext> 0007 #include <QQuickItem> 0008 0009 #include "screenrotationutil.h" 0010 0011 void ScreenRotationPlugin::registerTypes(const char *uri) 0012 { 0013 Q_ASSERT(QLatin1String(uri) == QLatin1String("org.kde.plasma.quicksetting.screenrotation")); 0014 0015 qmlRegisterSingletonType<ScreenRotationUtil>(uri, 1, 0, "ScreenRotationUtil", [](QQmlEngine *, QJSEngine *) { 0016 return new ScreenRotationUtil; 0017 }); 0018 } 0019 0020 //#include "moc_screenrotationplugin.cpp"