Repository navigation
Fix qmltyperegistrar "used as base type but cannot be found" warnings - #362
igorkorsukov merged 2 commits into
Conversation
qmltyperegistrar only knows the metatypes of the libraries a QML module links against, so modules deriving from types in muse_uicomponents_qml must link it, not just import it. SelectableItemListModel::Item could not be found at all, because moc does not support Q_OBJECT in nested classes; it is now the top-level SelectableItem. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SelectableItem added nothing over QObject: the model only stores the items, and subclasses cast them to their own type anyway. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to
|
The build printed warnings like:
qmltyperegistrar only knows the metatypes of the libraries a QML module links against. Listing a module under
IMPORTSis not enough, somuse_extensions_qmlandmuse_workspace_qmlnow linkmuse_uicomponents_qml.SelectableItemListModel::Itemcould never be found, because moc does not supportQ_OBJECTin nested classes. It added nothing overQObject(the model only stores the items, and subclasses cast them to their own type), so the model now holds plainQObjects.MuseScore counterpart (links the remaining modules, updates the item classes): musescore/MuseScore#35255
🤖 Generated with Claude Code