Model that provides a flattened list of the tree of SettingDefinition objects in a DefinitionContainer.
More...
Inherits QAbstractListModel.
|
def | __init__ (self, parent=None, *args, **kwargs) |
|
None | setDestroyed (self, bool value) |
|
None | setShowAncestors (self, bool show_ancestors) |
|
bool | showAncestors (self) |
|
None | setContainerId (self, str container_id) |
| Set the containerId property. More...
|
|
str | containerId (self) |
|
None | setRootKey (self, str key) |
| Set the rootKey property. More...
|
|
def | rootKey (self) |
|
None | setShowAll (self, bool show) |
| Set the showAll property. More...
|
|
bool | showAll (self) |
|
def | setVisibilityHandler (self, visibility_handler) |
| Set the visibilityHandler property.
|
|
def | visibilityHandler (self) |
|
def | setExclude (self, exclude) |
| Set the exclude property.
|
|
def | exclude (self) |
|
None | setExpanded (self, List[str] expanded) |
| Set the expanded property.
|
|
List[str] | expanded (self) |
|
int | visibleCount (self) |
|
int | categoryCount (self) |
|
def | setFilter (self, filter_dict) |
| Set the filter of this model based on a string. More...
|
|
def | filter (self) |
|
def | expand (self, key) |
| Show the children of a specified SettingDefinition. More...
|
|
None | expandRecursive (self, str key) |
| Show the children of a specified SettingDefinition and all children of those settings as well. More...
|
|
None | collapse (self, str key) |
| Hide the children of a specified SettingDefinition. More...
|
|
None | show (self, str key) |
| Show a single SettingDefinition. More...
|
|
None | hide (self, str key) |
| Hide a single SettingDefinition. More...
|
|
None | setAllExpandedVisible (self, bool visible) |
|
None | setAllVisible (self, bool visible) |
|
None | setVisible (self, str key, bool visible) |
| Set a single SettingDefinition's visible state.
|
|
bool | getVisible (self, str key) |
|
int | getIndex (self, str key) |
|
def | getRequires (self, key, role=None) |
|
def | getRequiredBy (self, key, role=None) |
|
def | count (self) |
|
int | rowCount (self, parent=None) |
|
def | data (self, index, role) |
| Reimplemented from QAbstractListModel.
|
|
def | roleNames (self) |
| Reimplemented from QAbstractListModel.
|
|
None | forceUpdate (self) |
| Force updating the model. More...
|
|
|
int | KeyRole = Qt.UserRole + 1 |
|
int | DepthRole = Qt.UserRole + 2 |
|
int | VisibleRole = Qt.UserRole + 3 |
|
int | ExpandedRole = Qt.UserRole + 4 |
|
| showAncestorsChanged = pyqtSignal() |
| Emitted whenever the showAncestors property changes. More...
|
|
| bool |
| Whether or not the model should show all definitions regardless of visibility. More...
|
|
| fset |
| An instance of SettingVisibilityHandler to use to determine which settings should be visible. More...
|
|
| setShowAncestors |
|
| notify |
|
| containerIdChanged = pyqtSignal() |
| Emitted whenever the containerId property changes. More...
|
|
| str |
| The ID of the DefinitionContainer object this model exposes. More...
|
|
| setContainerId |
|
| rootKeyChanged = pyqtSignal() |
| Emitted when the rootKey property changes. More...
|
|
| setRootKey |
|
| showAllChanged = pyqtSignal() |
| Emitted when the showAll property changes. More...
|
|
| setShowAll |
|
| visibilityChanged = pyqtSignal() |
|
| visibilityHandlerChanged = pyqtSignal() |
| Emitted whenever the visibilityHandler property changes.
|
|
| setVisibilityHandler |
|
| excludeChanged = pyqtSignal() |
| Emitted whenever the exclude property changes.
|
|
| setExclude |
|
| expandedChanged = pyqtSignal() |
| Emitted whenever the exclude property changes.
|
|
| setExpanded |
|
| visibleCountChanged = pyqtSignal() |
|
| int |
| Reimplemented from QAbstractListModel. More...
|
|
| filterChanged = pyqtSignal() |
|
| setFilter |
|
| result |
|
| itemsChanged = pyqtSignal() |
| Reimplemented from ListModel only because we want to use it in static context in the subclass. More...
|
|
| QObject |
| This function is necessary because it is abstract in QAbstractListModel. More...
|
|
Model that provides a flattened list of the tree of SettingDefinition objects in a DefinitionContainer.
This model exposes the tree of SettingDefinition objects in a DefinitionContainer as a list of settings. It uses two lists, one is the list of definitions which directly corresponds with the flattened contents of the DefinitionContainer. The other is a list matching rows in the model to indexes in the list of settings. This list can be quite a bit shorter than the list of definitions since all visibility criteria are applied.