Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move read/write XML for QgsMapThemeCollection::MapThemeRecord inside class #59455

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions python/PyQt6/core/auto_additions/qgsmapthemecollection.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@
QgsMapThemeCollection.__signal_arguments__ = {'mapThemeChanged': ['theme: str'], 'mapThemeRenamed': ['name: str', 'newName: str']}
except NameError:
pass
try:
QgsMapThemeCollection.MapThemeRecord.readXml = staticmethod(QgsMapThemeCollection.MapThemeRecord.readXml)
except NameError:
pass
27 changes: 26 additions & 1 deletion python/PyQt6/core/auto_generated/qgsmapthemecollection.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ Sets the map layer for this record
QSet<QString> expandedLegendItems;

bool expandedLayerNode;

};

class MapThemeRecord
Expand Down Expand Up @@ -158,6 +159,30 @@ Sets a set of group identifiers for group nodes that should have expanded state.
Sets a set of group identifiers for group nodes that should have checked state. See :py:func:`~MapThemeRecord.checkedGroupNodes`.

.. versionadded:: 3.10.1
%End

static MapThemeRecord readXml( const QDomElement &element, const QgsProject *project );
%Docstring
Reads the map theme record from XML

:param element: DOM element
:param project: the QGIS project

.. seealso:: :py:func:`writeXml`

.. versionadded:: 3.42
%End

void writeXml( QDomElement element, QDomDocument &document ) const;
%Docstring
Writes the map theme record to XML.

:param element: DOM element
:param document: DOM document

.. seealso:: :py:func:`readXml`

.. versionadded:: 3.42
%End

};
Expand Down Expand Up @@ -251,7 +276,7 @@ Reads the map theme collection state from XML
.. seealso:: :py:func:`writeXml`
%End

void writeXml( QDomDocument &doc );
void writeXml( QDomDocument &doc ) const;
%Docstring
Writes the map theme collection state to XML.

Expand Down
4 changes: 4 additions & 0 deletions python/core/auto_additions/qgsmapthemecollection.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@
QgsMapThemeCollection.__signal_arguments__ = {'mapThemeChanged': ['theme: str'], 'mapThemeRenamed': ['name: str', 'newName: str']}
except NameError:
pass
try:
QgsMapThemeCollection.MapThemeRecord.readXml = staticmethod(QgsMapThemeCollection.MapThemeRecord.readXml)
except NameError:
pass
27 changes: 26 additions & 1 deletion python/core/auto_generated/qgsmapthemecollection.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ Sets the map layer for this record
QSet<QString> expandedLegendItems;

bool expandedLayerNode;

};

class MapThemeRecord
Expand Down Expand Up @@ -158,6 +159,30 @@ Sets a set of group identifiers for group nodes that should have expanded state.
Sets a set of group identifiers for group nodes that should have checked state. See :py:func:`~MapThemeRecord.checkedGroupNodes`.

.. versionadded:: 3.10.1
%End

static MapThemeRecord readXml( const QDomElement &element, const QgsProject *project );
%Docstring
Reads the map theme record from XML

:param element: DOM element
:param project: the QGIS project

.. seealso:: :py:func:`writeXml`

.. versionadded:: 3.42
%End

void writeXml( QDomElement element, QDomDocument &document ) const;
%Docstring
Writes the map theme record to XML.

:param element: DOM element
:param document: DOM document

.. seealso:: :py:func:`readXml`

.. versionadded:: 3.42
%End

};
Expand Down Expand Up @@ -251,7 +276,7 @@ Reads the map theme collection state from XML
.. seealso:: :py:func:`writeXml`
%End

void writeXml( QDomDocument &doc );
void writeXml( QDomDocument &doc ) const;
%Docstring
Writes the map theme collection state to XML.

Expand Down
Loading
Loading