Class: QgsAbstractHistoryProvider¶
Abstract base class for objects which track user history (i.e. operations performed through the GUI).
QgsAbstractHistoryProvider
subclasses are accessible through
the QgsHistoryProviderRegistry
class.
Added in version 3.24.
Class Hierarchy¶
Base classes¶
Subclasses¶
History provider for operations performed through the Processing framework. |
Methods
Creates a new history node for the given entry. |
|
Returns the provider's unique id, which is used to associate existing history entries with the provider. |
|
Updates an existing history node for the given entry. |
- class qgis.gui.QgsAbstractHistoryProvider[source]¶
Bases:
QObject
- createNodeForEntry(self, entry: QgsHistoryEntry, context: QgsHistoryWidgetContext) QgsHistoryEntryNode | None [source]¶
Creates a new history node for the given
entry
.Added in version 3.32.
- Parameters:
entry (QgsHistoryEntry)
context (QgsHistoryWidgetContext)
- Return type:
Optional[QgsHistoryEntryNode]
- id(self) str [source]¶
Returns the provider’s unique id, which is used to associate existing history entries with the provider.
- Return type:
str
- updateNodeForEntry(self, node: QgsHistoryEntryNode | None, entry: QgsHistoryEntry, context: QgsHistoryWidgetContext)[source]¶
Updates an existing history
node
for the givenentry
.Added in version 3.32.
- Parameters:
node (Optional[QgsHistoryEntryNode])
entry (QgsHistoryEntry)
context (QgsHistoryWidgetContext)