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

and CANNOT be made functional
This commit is contained in:
Nyall Dawson 2018-09-12 05:35:35 +10:00
parent adc31bb8a0
commit c41af120a0
2 changed files with 3 additions and 9 deletions

View File

@ -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

View File

@ -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