![]() |
Qt 6.x
The Qt SDK
|
The base class for all script elements.
Derived classes should implement createFileLocations, DomElement::updatePathFromOwner and DomBase::iterateDirectSubpaths. Furthermore, they need their own DomType enum.
updatePathFromOwner and createFileLocations should be called on the script element root node after it was constructed for the DomItem-wrapping to work correctly. Without it, methods like iterateDirectSubpaths and all the stuff in DomItem will not work.
createFileLocations does not work without having the pathFromOwner set first via updatePathFromOwner.
In derived classes, the updatePathFromOwner-implementation should call the base implementation and also call recursively updatePathFromOwner on the derived class's children.
See \l ScriptElementBase::createFileLocations for the createFileLocations implementation in derived classes.
Derived classes need to implement iterateDirectSubpaths to comply with the DomItem interface.