Skip to content
Permalink
Browse files

Remove addSmartGroup from Python bindings -- it causes a crash in sip

and CANNOT be made functional
  • Loading branch information
nyalldawson committed Sep 12, 2018
1 parent adc31bb commit c41af120a0dd28d97d08c19a15a8fb08f17fce91
Showing with 3 additions and 9 deletions.
  1. +0 −8 python/core/auto_generated/symbology/qgsstyle.sip.in
  2. +3 −1 src/core/symbology/qgsstyle.h
@@ -85,14 +85,6 @@ Adds a new tag and returns the tag's id
:return: returns an int, which is the DB id of the new tag created, 0 if the tag couldn't be created
%End

int addSmartgroup( const QString &name, const QString &op, const QgsSmartConditionMap &conditions );
%Docstring
Adds a new smartgroup to the database and returns the id

:param name: is the name of the new Smart Group to be added
:param op: is the operator between the conditions; AND/OR as QString
:param conditions: are the smart group conditions
%End

QStringList tags() const;
%Docstring
@@ -135,8 +135,10 @@ class CORE_EXPORT QgsStyle : public QObject
* \param name is the name of the new Smart Group to be added
* \param op is the operator between the conditions; AND/OR as QString
* \param conditions are the smart group conditions
*
* \note Not available from Python bindings
*/
int addSmartgroup( const QString &name, const QString &op, const QgsSmartConditionMap &conditions );
int addSmartgroup( const QString &name, const QString &op, const QgsSmartConditionMap &conditions ) SIP_SKIP;

/**
* Returns a list of all tags in the style database

0 comments on commit c41af12

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