Class: QgsAbstractHistoryProvider¶
- class qgis.gui.QgsAbstractHistoryProvider¶
Bases:
PyQt5.QtCore.QObject
Abstract base class for objects which track user history (i.e. operations performed through the GUI).
QgsAbstractHistoryProvider
subclasses are accessible through theQgsHistoryProviderRegistry
class.Added in version 3.24:
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 givenentry
.- childEvent(self, QChildEvent)¶
- connectNotify(self, QMetaMethod)¶
- createNodeForEntry(self, entry: QgsHistoryEntry, context: QgsHistoryWidgetContext) QgsHistoryEntryNode ¶
Creates a new history node for the given
entry
.Added in version 3.32.
- Parameters:
entry (QgsHistoryEntry)
context (QgsHistoryWidgetContext)
- Return type:
- customEvent(self, QEvent)¶
- disconnectNotify(self, QMetaMethod)¶
- id(self) str ¶
Returns the provider’s unique id, which is used to associate existing history entries with the provider.
- Return type:
str
- isSignalConnected(self, QMetaMethod) bool ¶
- receivers(self, PYQT_SIGNAL) int ¶
- sender(self) QObject ¶
- senderSignalIndex(self) int ¶
- timerEvent(self, QTimerEvent)¶
- updateNodeForEntry(self, node: QgsHistoryEntryNode, entry: QgsHistoryEntry, context: QgsHistoryWidgetContext)¶
Updates an existing history
node
for the givenentry
.Added in version 3.32.
- Parameters:
node (QgsHistoryEntryNode)
entry (QgsHistoryEntry)
context (QgsHistoryWidgetContext)