diff --git a/apps/lmrstudio/automationview.cpp b/apps/lmrstudio/automationview.cpp index c4cfb9f..1e55b5d 100644 --- a/apps/lmrstudio/automationview.cpp +++ b/apps/lmrstudio/automationview.cpp @@ -50,9 +50,12 @@ class AutomationCanvas : public QQuickWidget explicit AutomationCanvas(QWidget *parent = nullptr) : QQuickWidget{parent} { - qmlRegisterType("Lmrs.Core.Automation", 1, 0, "Action"); - qmlRegisterType("Lmrs.Core.Automation", 1, 0, "Event"); - qmlRegisterType("Lmrs.Core.Automation", 1, 0, "Item"); + qmlRegisterUncreatableType("Lmrs.Core.Automation", 1, 0, "Action", + "Cannot create instances of an abstract type"_L1); + qmlRegisterUncreatableType("Lmrs.Core.Automation", 1, 0, "Event", + "Cannot create instances of an abstract type"_L1); + qmlRegisterUncreatableType("Lmrs.Core.Automation", 1, 0, "Item", + "Cannot create instances of an abstract type"_L1); qmlRegisterType("Lmrs.Core.Automation", 1, 0, "parameter");