File indexing completed on 2024-12-22 04:26:51
0001 /* 0002 * SPDX-FileCopyrightText: 2022 Devin Lin <devin@kde.org> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #include <QQmlExtensionPlugin> 0008 #include <QQmlEngine> 0009 0010 class MobileFormPlugin : public QQmlExtensionPlugin 0011 { 0012 Q_OBJECT 0013 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface") 0014 0015 public: 0016 MobileFormPlugin() = default; 0017 ~MobileFormPlugin() = default; 0018 void registerTypes(const char *uri) override 0019 { 0020 Q_ASSERT(QLatin1String(uri) == QLatin1String("org.kde.kirigamiaddons.labs.mobileform")); 0021 qmlRegisterModule(uri, 0, 1); 0022 } 0023 }; 0024 0025 #include "labplugin.moc"