File indexing completed on 2024-05-19 13:23:19
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 "nightcolorplugin.h" 0008 0009 #include <QQmlContext> 0010 #include <QQuickItem> 0011 0012 #include "nightcolorutil.h" 0013 0014 void NightColorPlugin::registerTypes(const char *uri) 0015 { 0016 Q_ASSERT(QLatin1String(uri) == QLatin1String("org.kde.plasma.quicksetting.nightcolor")); 0017 0018 qmlRegisterSingletonType<NightColorUtil>(uri, 1, 0, "NightColorUtil", [](QQmlEngine *, QJSEngine *) { 0019 return new NightColorUtil; 0020 }); 0021 } 0022 0023 //#include "moc_nightcolorplugin.cpp"