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