ItemModelResolver
Base classes
Name | Children | Inherits |
---|---|---|
BaseResolver prettyqt.utils.baseresolver |
|
⋔ Inheritance diagram
graph TD
1473290762816["itemmodels.ItemModelResolver"]
1473299906768["utils.BaseResolver"]
140713234304496["builtins.object"]
1473299906768 --> 1473290762816
140713234304496 --> 1473299906768
🛈 DocStrings
Bases: BaseResolver
Allows globbing ItemModels.
Source code in prettyqt\itemmodels\itemmodelresolver.py
__init__(model: core.QAbstractItemModel, path_role: constants.ItemDataRole = constants.DISPLAY_ROLE, ignore_case: bool = False)
Resolve any ModelIndex
paths using role path_role
.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
model |
QAbstractItemModel
|
Model to search |
required |
path_role |
ItemDataRole
|
ItemDataRole to be used for resolving |
DISPLAY_ROLE
|
ignore_case |
bool
|
Enable case insensisitve handling. |
False
|