Skip to content
Permalink
Browse files

Add QgsMapLayer::flagsChanged() signal

  • Loading branch information
wonder-sk committed Sep 11, 2018
1 parent 9d22389 commit 602b3e9dffa17fc88906ce8e5bf0eaa26e371540
Showing with 23 additions and 0 deletions.
  1. +11 −0 python/core/auto_generated/qgsmaplayer.sip.in
  2. +4 −0 src/core/qgsmaplayer.cpp
  3. +8 −0 src/core/qgsmaplayer.h
@@ -1378,6 +1378,17 @@ Emitted when the layer's metadata is changed.
.. seealso:: :py:func:`metadata`

.. versionadded:: 3.0
%End

void flagsChanged();
%Docstring
Emitted when layer's flags have been modified.

.. seealso:: :py:func:`setFlags`

.. seealso:: :py:func:`flags`

.. versionadded:: 3.4
%End

protected:
@@ -151,7 +151,11 @@ QgsMapLayer::LayerFlags QgsMapLayer::flags() const

void QgsMapLayer::setFlags( QgsMapLayer::LayerFlags flags )
{
if ( flags == mFlags )
return;

mFlags = flags;
emit flagsChanged();
}

QString QgsMapLayer::id() const
@@ -1200,6 +1200,14 @@ class CORE_EXPORT QgsMapLayer : public QObject
*/
void metadataChanged();

/**
* Emitted when layer's flags have been modified.
* \see setFlags()
* \see flags()
* \since QGIS 3.4
*/
void flagsChanged();

private slots:

void onNotifiedTriggerRepaint( const QString &message );

0 comments on commit 602b3e9

Please sign in to comment.
You can’t perform that action at this time.