mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-10-31 00:06:02 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			65 lines
		
	
	
		
			3.0 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			65 lines
		
	
	
		
			3.0 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
| # The following has been generated automatically from src/core/browser/qgsbrowsermodel.h
 | |
| QgsBrowserModel.ItemDataRole = QgsBrowserModel.CustomRole
 | |
| # monkey patching scoped based enum
 | |
| QgsBrowserModel.PathRole = QgsBrowserModel.CustomRole.Path
 | |
| QgsBrowserModel.ItemDataRole.PathRole = QgsBrowserModel.CustomRole.Path
 | |
| QgsBrowserModel.PathRole.is_monkey_patched = True
 | |
| QgsBrowserModel.PathRole.__doc__ = "Item path used to access path in the tree, see QgsDataItem.mPath"
 | |
| QgsBrowserModel.CommentRole = QgsBrowserModel.CustomRole.Comment
 | |
| QgsBrowserModel.ItemDataRole.CommentRole = QgsBrowserModel.CustomRole.Comment
 | |
| QgsBrowserModel.CommentRole.is_monkey_patched = True
 | |
| QgsBrowserModel.CommentRole.__doc__ = "Item comment"
 | |
| QgsBrowserModel.SortRole = QgsBrowserModel.CustomRole.Sort
 | |
| QgsBrowserModel.ItemDataRole.SortRole = QgsBrowserModel.CustomRole.Sort
 | |
| QgsBrowserModel.SortRole.is_monkey_patched = True
 | |
| QgsBrowserModel.SortRole.__doc__ = "Custom sort role, see QgsDataItem.sortKey()"
 | |
| QgsBrowserModel.ProviderKeyRole = QgsBrowserModel.CustomRole.ProviderKey
 | |
| QgsBrowserModel.ItemDataRole.ProviderKeyRole = QgsBrowserModel.CustomRole.ProviderKey
 | |
| QgsBrowserModel.ProviderKeyRole.is_monkey_patched = True
 | |
| QgsBrowserModel.ProviderKeyRole.__doc__ = "Data item provider key that created the item, see QgsDataItem.providerKey() \n.. versionadded:: 3.12"
 | |
| QgsBrowserModel.LayerMetadataRole = QgsBrowserModel.CustomRole.LayerMetadata
 | |
| QgsBrowserModel.ItemDataRole.LayerMetadataRole = QgsBrowserModel.CustomRole.LayerMetadata
 | |
| QgsBrowserModel.LayerMetadataRole.is_monkey_patched = True
 | |
| QgsBrowserModel.LayerMetadataRole.__doc__ = ""
 | |
| QgsBrowserModel.CustomRole.__doc__ = """Custom model roles.
 | |
| 
 | |
| .. note::
 | |
| 
 | |
|    Prior to QGIS 3.36 this was available as QgsBrowserModel.ItemDataRole
 | |
| 
 | |
| .. versionadded:: 3.36
 | |
| 
 | |
| * ``Path``: Item path used to access path in the tree, see QgsDataItem.mPath
 | |
| 
 | |
|   Available as ``QgsBrowserModel.PathRole`` in older QGIS releases.
 | |
| 
 | |
| * ``Comment``: Item comment
 | |
| 
 | |
|   Available as ``QgsBrowserModel.CommentRole`` in older QGIS releases.
 | |
| 
 | |
| * ``Sort``: Custom sort role, see QgsDataItem.sortKey()
 | |
| 
 | |
|   Available as ``QgsBrowserModel.SortRole`` in older QGIS releases.
 | |
| 
 | |
| * ``ProviderKey``: Data item provider key that created the item, see QgsDataItem.providerKey()
 | |
| 
 | |
|   .. versionadded:: 3.12
 | |
| 
 | |
| 
 | |
|   Available as ``QgsBrowserModel.ProviderKeyRole`` in older QGIS releases.
 | |
| 
 | |
| * ``LayerMetadata``: 
 | |
| 
 | |
|   Available as ``QgsBrowserModel.LayerMetadataRole`` in older QGIS releases.
 | |
| 
 | |
| 
 | |
| """
 | |
| # --
 | |
| QgsBrowserModel.CustomRole.baseClass = QgsBrowserModel
 | |
| try:
 | |
|     QgsBrowserModel.__attribute_docs__ = {'stateChanged': 'Emitted when item children fetch was finished\n', 'connectionsChanged': 'Emitted when connections for the specified ``providerKey`` have changed in the browser.\n\nForwarded to the widget and used to notify the provider dialogs of a changed connection.\n'}
 | |
|     QgsBrowserModel.__signal_arguments__ = {'stateChanged': ['index: QModelIndex', 'oldState: Qgis.BrowserItemState'], 'connectionsChanged': ['providerKey: str']}
 | |
|     QgsBrowserModel.__group__ = ['browser']
 | |
| except (NameError, AttributeError):
 | |
|     pass
 |