File indexing completed on 2025-12-07 14:44:47

0001 /*
0002  *   SPDX-FileCopyrightText: 2023 Marco Martin <mart@kde.org>
0003  *
0004  *   SPDX-License-Identifier: LGPL-2.0-or-later
0005  */
0006 
0007 #include <QQmlExtensionPlugin>
0008 #include <QQmlEngine>
0009 
0010 class KSvgComaptPlugin : public QQmlExtensionPlugin
0011 {
0012     Q_OBJECT
0013     Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
0014 
0015 public:
0016     KSvgComaptPlugin() = default;
0017     ~KSvgComaptPlugin() = default;
0018     void registerTypes(const char *uri) override
0019     {
0020         Q_ASSERT(QLatin1String(uri) == QLatin1String("org.kde.ksvg"));
0021         qmlRegisterModule(uri, 1, 0);
0022     }
0023 };
0024 
0025 #include "ksvgcompatplugin.moc"