File tree Expand file tree Collapse file tree 3 files changed +35
-4
lines changed
python/gui/auto_generated/history Expand file tree Collapse file tree 3 files changed +35
-4
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,20 @@ Abstract base class for objects which track user history (i.e. operations perfor
36
36
virtual QString id() const = 0;
37
37
%Docstring
38
38
Returns the provider's unique id, which is used to associate existing history entries with the provider.
39
+ %End
40
+
41
+ virtual QgsHistoryEntryNode *createNodeForEntry( const QVariantMap &entry ) /Factory/;
42
+ %Docstring
43
+ Creates a new history node for the given ``entry``.
44
+
45
+ .. versionadded:: 3.32
46
+ %End
47
+
48
+ virtual void updateNodeForEntry( QgsHistoryEntryNode *node, const QVariantMap &entry );
49
+ %Docstring
50
+ Updates an existing history ``node`` for the given ``entry``.
51
+
52
+ .. versionadded:: 3.32
39
53
%End
40
54
41
55
};
Original file line number Diff line number Diff line change 17
17
#include " qgshistoryprovider.h"
18
18
19
19
QgsAbstractHistoryProvider::~QgsAbstractHistoryProvider () = default ;
20
+
21
+ QgsHistoryEntryNode *QgsAbstractHistoryProvider::createNodeForEntry ( const QVariantMap & )
22
+ {
23
+ return nullptr ;
24
+ }
25
+
26
+ void QgsAbstractHistoryProvider::updateNodeForEntry ( QgsHistoryEntryNode *, const QVariantMap & )
27
+ {
28
+
29
+ }
Original file line number Diff line number Diff line change @@ -52,13 +52,20 @@ class GUI_EXPORT QgsAbstractHistoryProvider
52
52
*/
53
53
virtual QString id () const = 0;
54
54
55
- #if 0
56
-
57
55
/* *
58
56
* Creates a new history node for the given \a entry.
57
+ *
58
+ * \since QGIS 3.32
59
59
*/
60
- virtual QgsHistoryEntryNode *createNodeForEntry( const QVariantMap &entry ) = 0 SIP_FACTORY;
61
- #endif
60
+ virtual QgsHistoryEntryNode *createNodeForEntry ( const QVariantMap &entry ) SIP_FACTORY;
61
+
62
+ /* *
63
+ * Updates an existing history \a node for the given \a entry.
64
+ *
65
+ * \since QGIS 3.32
66
+ */
67
+ virtual void updateNodeForEntry ( QgsHistoryEntryNode *node, const QVariantMap &entry );
68
+
62
69
};
63
70
64
71
#endif // QGSHISTORYPROVIDER_H
You can’t perform that action at this time.
0 commit comments