|
VivoQuant 6.5.0
|
Base class of all nodes.
Public Member Functions | |
| virtual QWidget * | widget ()=0 |
| The widget placed in the parent's grid, and the label beside it (null: no label cell). | |
| int | span () |
| Columns taken in the parent's grid. | |
| virtual bool | hasValue () |
| Fields and data containers have a value; layout containers don't. | |
| void | setValue (Variant &value) |
Sets the value; value must already be validated with validateValue(). | |
| virtual ContainerNode * | asLayoutContainer () |
| A layout container, whose named descendants share this node's scope. | |
| void | setObjectNames (string prefix) |
| void | finishSetup () |
| Applies tooltip and read-only from the spec; called once after construction. | |
| virtual QJsonObject | describe () |
|
virtual |
The node's current state as JSON, for the TESTPANEL test log: type, name, effective read-only state, object name and tooltip, plus what the node type adds (label, value, editor settings, children). The parent adds the grid position.
Reimplemented in ContainerNode.
|
inline |
Gives widgets object names <prefix><name>, recursively, so scripts can find them with VQ.getWidget().