Skip to content

Commit

Permalink
remove SIP_SKIP on hasCheckedStateInfo and setHasCheckedStateInfo to …
Browse files Browse the repository at this point in the history
…be able to create full map theme record settings
  • Loading branch information
signedav authored and nyalldawson committed Dec 15, 2022
1 parent 87d726f commit 115d822
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
21 changes: 21 additions & 0 deletions python/core/auto_generated/qgsmapthemecollection.sip.in
Expand Up @@ -112,13 +112,34 @@ and thus whether :py:func:`~MapThemeRecord.expandedGroupNodes` and expandedLegen
.. versionadded:: 3.2
%End

bool hasCheckedStateInfo() const;
%Docstring
Returns whether information about checked/unchecked state of groups has been recorded
and thus whether :py:func:`~MapThemeRecord.checkedGroupNodes` is valid.

.. note::

Not available in Python bindings

.. versionadded:: 3.10.1
%End
void setHasExpandedStateInfo( bool hasInfo );
%Docstring
Sets whether the map theme contains valid expanded/collapsed state of nodes

.. versionadded:: 3.2
%End

void setHasCheckedStateInfo( bool hasInfo );
%Docstring
Sets whether the map theme contains valid checked/unchecked state of group nodes

.. note::

Not available in Python bindings

.. versionadded:: 3.10.1
%End
QSet<QString> expandedGroupNodes() const;
%Docstring
Returns a set of group identifiers for group nodes that should have expanded state (other group nodes should be collapsed).
Expand Down
4 changes: 2 additions & 2 deletions src/core/qgsmapthemecollection.h
Expand Up @@ -163,7 +163,7 @@ class CORE_EXPORT QgsMapThemeCollection : public QObject
* \note Not available in Python bindings
* \since QGIS 3.10.1
*/
bool hasCheckedStateInfo() const { return mHasCheckedStateInfo; } SIP_SKIP;
bool hasCheckedStateInfo() const { return mHasCheckedStateInfo; };

/**
* Sets whether the map theme contains valid expanded/collapsed state of nodes
Expand All @@ -176,7 +176,7 @@ class CORE_EXPORT QgsMapThemeCollection : public QObject
* \note Not available in Python bindings
* \since QGIS 3.10.1
*/
void setHasCheckedStateInfo( bool hasInfo ) { mHasCheckedStateInfo = hasInfo; } SIP_SKIP;
void setHasCheckedStateInfo( bool hasInfo ) { mHasCheckedStateInfo = hasInfo; };

/**
* Returns a set of group identifiers for group nodes that should have expanded state (other group nodes should be collapsed).
Expand Down

0 comments on commit 115d822

Please sign in to comment.