File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -107,10 +107,11 @@ according to some user configuration.
107
107
.. seealso:: :py:func:`algorithmById`
108
108
%End
109
109
110
- void addParameterType( QgsProcessingParameterType *type );
110
+ void addParameterType( QgsProcessingParameterType *type /Transfer/ );
111
111
%Docstring
112
112
Register a new parameter type for processing.
113
- Will emit parameterTypeAdded
113
+ Ownership is transferred to the registry.
114
+ Will emit parameterTypeAdded.
114
115
115
116
.. seealso:: :py:func:`removeParameterType`
116
117
@@ -120,7 +121,8 @@ Will emit parameterTypeAdded
120
121
void removeParameterType( QgsProcessingParameterType *type );
121
122
%Docstring
122
123
Unregister a custom parameter type from processing.
123
- Will emit parameterTypeRemoved
124
+ The type will be deleted.
125
+ Will emit parameterTypeRemoved.
124
126
125
127
.. seealso:: :py:func:`addParameterType`
126
128
Original file line number Diff line number Diff line change @@ -134,17 +134,19 @@ class CORE_EXPORT QgsProcessingRegistry : public QObject
134
134
135
135
/* *
136
136
* Register a new parameter type for processing.
137
- * Will emit parameterTypeAdded
137
+ * Ownership is transferred to the registry.
138
+ * Will emit parameterTypeAdded.
138
139
*
139
140
* \see removeParameterType
140
141
*
141
142
* \since QGIS 3.2
142
143
*/
143
- void addParameterType ( QgsProcessingParameterType *type );
144
+ void addParameterType ( QgsProcessingParameterType *type SIP_TRANSFER );
144
145
145
146
/* *
146
147
* Unregister a custom parameter type from processing.
147
- * Will emit parameterTypeRemoved
148
+ * The type will be deleted.
149
+ * Will emit parameterTypeRemoved.
148
150
*
149
151
* \see addParameterType
150
152
*
@@ -196,7 +198,7 @@ class CORE_EXPORT QgsProcessingRegistry : public QObject
196
198
QMap<QString, QgsProcessingProvider *> mProviders ;
197
199
198
200
// ! Hash of available parameter types by id. This object owns the pointers.
199
- QHash <QString, QgsProcessingParameterType *> mParameterTypes ;
201
+ QMap <QString, QgsProcessingParameterType *> mParameterTypes ;
200
202
201
203
#ifdef SIP_RUN
202
204
QgsProcessingRegistry ( const QgsProcessingRegistry &other );
You can’t perform that action at this time.
0 commit comments