Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
ScriptElementBase Class Reference
+ Collaboration diagram for ScriptElementBase:

Detailed Description

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.


The documentation for this class was generated from the following file: