Added Metadata to pack model

This commit is contained in:
Digital Artifex
2025-08-19 09:35:23 -04:00
parent c8f3f1e981
commit a49c96a56d
6 changed files with 294 additions and 12 deletions

View File

@@ -20,6 +20,9 @@ class KOMPLEX_EXPORT KomplexPlugin : public QQmlExtensionPlugin
{
Q_OBJECT
Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid FILE "plugin.json")
inline static AudioModel *m_model = nullptr;
public:
void registerTypes(const char *uri) override
{
@@ -29,6 +32,10 @@ public:
qmlRegisterType<ShaderPackModel>(uri, 1, 0, "ShaderPackModel");
}
void unregisterTypes() override
{
}
void initializeEngine(QQmlEngine *engine, const char *uri) override
{
Q_ASSERT(QLatin1String(uri) == QLatin1String("com.github.digitalartifex.komplex"));