Krita Source Code Documentation
Loading...
Searching...
No Matches
KritaQmlComponentsPlugin.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2025 Halla Rempt <halla@valdyas.org>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6#ifndef KRITAQMLCOMPONENTSPLUGIN_H
7#define KRITAQMLCOMPONENTSPLUGIN_H
8
9#include <QUrl>
10#include <QQmlEngine>
11#include <QQmlExtensionPlugin>
12
13class KritaQmlComponentsPlugin : public QQmlExtensionPlugin
14{
15 Q_OBJECT
16 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
17
18public:
19 KritaQmlComponentsPlugin(QObject *parent = nullptr);
20 void initializeEngine(QQmlEngine *engine, const char *uri) override;
21 void registerTypes(const char *uri) override;
22};
23
24#endif
void registerTypes(const char *uri) override
void initializeEngine(QQmlEngine *engine, const char *uri) override
KritaQmlComponentsPlugin(QObject *parent=nullptr)