ScriptsModel

Available in: Interface Scripts Client Entity Scripts

Provided as a property of ScriptDiscoveryService.

Has properties and functions below in addition to those of http://doc.qt.io/qt-5/qabstractitemmodel.html.

Methods

Methods

columnCount(parentopt) → {number}
Parameters:
Name Type Attributes Default Description
parent QmodelIndex <optional>
null
Returns:
Type: number
data(index, roleopt)
Parameters:
Name Type Attributes Default Description
index QModelIndex
role number <optional>
0 returns {string}
getFolderNodes(parent) → {Array.<TreeNodeBase>}
Parameters:
Name Type Description
parent TreeNodeFolder
Returns:
Type: Array.<TreeNodeBase>
getTreeNodeFromIndex(index) → {TreeNodeBase}
Parameters:
Name Type Description
index QmodelIndex
Returns:
Type: TreeNodeBase
index(row, column, parent) → {QModelIndex}
Parameters:
Name Type Description
row number
column number
parent QModelIndex
Returns:
Type: QModelIndex
parent(child) → {QModelIndex}
Parameters:
Name Type Description
child QModelIndex
Returns:
Type: QModelIndex
rowCount(parentopt) → {number}
Parameters:
Name Type Attributes Default Description
parent QmodelIndex <optional>
null
Returns:
Type: number