File tree 3 files changed +23
-0
lines changed
python/core/auto_generated
3 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -1378,6 +1378,17 @@ Emitted when the layer's metadata is changed.
1378
1378
.. seealso:: :py:func:`metadata`
1379
1379
1380
1380
.. versionadded:: 3.0
1381
+ %End
1382
+
1383
+ void flagsChanged();
1384
+ %Docstring
1385
+ Emitted when layer's flags have been modified.
1386
+
1387
+ .. seealso:: :py:func:`setFlags`
1388
+
1389
+ .. seealso:: :py:func:`flags`
1390
+
1391
+ .. versionadded:: 3.4
1381
1392
%End
1382
1393
1383
1394
protected:
Original file line number Diff line number Diff line change @@ -151,7 +151,11 @@ QgsMapLayer::LayerFlags QgsMapLayer::flags() const
151
151
152
152
void QgsMapLayer::setFlags ( QgsMapLayer::LayerFlags flags )
153
153
{
154
+ if ( flags == mFlags )
155
+ return ;
156
+
154
157
mFlags = flags;
158
+ emit flagsChanged ();
155
159
}
156
160
157
161
QString QgsMapLayer::id () const
Original file line number Diff line number Diff line change @@ -1200,6 +1200,14 @@ class CORE_EXPORT QgsMapLayer : public QObject
1200
1200
*/
1201
1201
void metadataChanged ();
1202
1202
1203
+ /* *
1204
+ * Emitted when layer's flags have been modified.
1205
+ * \see setFlags()
1206
+ * \see flags()
1207
+ * \since QGIS 3.4
1208
+ */
1209
+ void flagsChanged ();
1210
+
1203
1211
private slots:
1204
1212
1205
1213
void onNotifiedTriggerRepaint ( const QString &message );
You can’t perform that action at this time.
0 commit comments