Commit b312e7db authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port qmlRegisterInterface

parent d205d0f0
Pipeline #205342 skipped
......@@ -35,6 +35,9 @@ void AnalitzaDeclarativePlugin::registerTypes(const char* uri)
qmlRegisterType<Analitza::PlotsModel>(uri, 1, 0, "PlotsModel");
qmlRegisterType<Analitza::VariablesModel>(uri, 1, 0, "VariablesModel");
qmlRegisterType<OperatorsModel>(uri, 1, 0, "OperatorsModel");
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
qmlRegisterInterface<Analitza::Variables>(uri, 1);
#else
qRegisterMetaType<Analitza::Variables>();
#endif
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment