File indexing completed on 2024-10-13 09:40:08
0001 /* 0002 SPDX-FileCopyrightText: 2017 Marco Martin <mart@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #include "qqc2desktopstyleplugin.h" 0008 #include "kpropertywriter_p.h" 0009 #include "kquickstyleitem_p.h" 0010 0011 #include <QQmlContext> 0012 #include <QQmlEngine> 0013 #include <QQuickItem> 0014 0015 void QQc2DesktopStylePlugin::registerTypes(const char *uri) 0016 { 0017 Q_ASSERT(QLatin1String(uri) == QLatin1String("org.kde.qqc2desktopstyle.private")); 0018 0019 qmlRegisterType<KQuickStyleItem>(uri, 1, 0, "StyleItem"); 0020 qmlRegisterType<KPropertyWriter>(uri, 1, 0, "PropertyWriter"); 0021 qmlRegisterAnonymousType<KQuickPadding>(uri, 1); 0022 qmlProtectModule(uri, 2); 0023 } 0024 0025 #include "moc_qqc2desktopstyleplugin.cpp"