Skip to content

Commit

Permalink
Remove a bunch of duplicate code and simplify interface for QgsStyle/…
Browse files Browse the repository at this point in the history
…QgsStyleModel
  • Loading branch information
nyalldawson committed Apr 10, 2020
1 parent 6c2937f commit 0e8be09
Show file tree
Hide file tree
Showing 5 changed files with 226 additions and 555 deletions.
9 changes: 9 additions & 0 deletions python/core/auto_generated/symbology/qgsstyle.sip.in
Expand Up @@ -353,6 +353,15 @@ Removes all tags for the specified symbol or colorramp
bool removeSymbol( const QString &name );
%Docstring
Removes symbol from style (and delete it)
%End

bool renameEntity( StyleEntity type, const QString &oldName, const QString &newName );
%Docstring
Renames an entity of the specified ``type`` from ``oldName`` to ``newName``.

Returns ``True`` if the entity was successfully renamed.

.. versionadded:: 3.14
%End

bool renameSymbol( const QString &oldName, const QString &newName );
Expand Down

0 comments on commit 0e8be09

Please sign in to comment.