ScriptsModel

Description

Provided as a property of ScriptDiscoveryService.

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

Supported Script Types: Interface Scripts • Client Entity Scripts • Avatar Scripts

Constructor
new ScriptsModel( )

Methods

Name Return Value Summary
columnCount number
data None
getFolderNodes Array.<TreeNodeBase>
getTreeNodeFromIndex TreeNodeBase
index QModelIndex
parent QModelIndex
rowCount number

Method Details

(static) columnCount( parentopt ) → {number}
Returns: number

Parameters

Name Type Attributes Default Value Description
parent QmodelIndex <optional>
null
(static) data( index, roleopt )

Parameters

Name Type Attributes Default Value Description
index QModelIndex
role number <optional>
0 returns {string}
(static) getFolderNodes( parent ) → {Array.<TreeNodeBase>}
Returns: Array.<TreeNodeBase>

Parameters

Name Type Description
parent TreeNodeFolder
(static) getTreeNodeFromIndex( index ) → {TreeNodeBase}
Returns: TreeNodeBase

Parameters

Name Type Description
index QmodelIndex
(static) index( row, column, parent ) → {QModelIndex}
Returns: QModelIndex

Parameters

Name Type Description
row number
column number
parent QModelIndex
(static) parent( child ) → {QModelIndex}
Returns: QModelIndex

Parameters

Name Type Description
child QModelIndex
(static) rowCount( parentopt ) → {number}
Returns: number

Parameters

Name Type Attributes Default Value Description
parent QmodelIndex <optional>
null