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

Inheritance diagram of qgis.gui.QgsAbstractHistoryProvider

Base classes

QObject

Subclasses

QgsProcessingHistoryProvider

History provider for operations performed through the Processing framework.

Methods

createNodeForEntry

Creates a new history node for the given entry.

id

Returns the provider's unique id, which is used to associate existing history entries with the provider.

updateNodeForEntry

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:
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 given entry.

Added in version 3.32.

Parameters: