From c41af120a0dd28d97d08c19a15a8fb08f17fce91 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Wed, 12 Sep 2018 05:35:35 +1000 Subject: [PATCH] Remove addSmartGroup from Python bindings -- it causes a crash in sip and CANNOT be made functional --- python/core/auto_generated/symbology/qgsstyle.sip.in | 8 -------- src/core/symbology/qgsstyle.h | 4 +++- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/python/core/auto_generated/symbology/qgsstyle.sip.in b/python/core/auto_generated/symbology/qgsstyle.sip.in index 1ede5ea85d6..acc35365350 100644 --- a/python/core/auto_generated/symbology/qgsstyle.sip.in +++ b/python/core/auto_generated/symbology/qgsstyle.sip.in @@ -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 diff --git a/src/core/symbology/qgsstyle.h b/src/core/symbology/qgsstyle.h index e28f961bf9f..d77a5987bde 100644 --- a/src/core/symbology/qgsstyle.h +++ b/src/core/symbology/qgsstyle.h @@ -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