Skip to content

Commit c41af12

Browse files
committedSep 12, 2018
Remove addSmartGroup from Python bindings -- it causes a crash in sip
and CANNOT be made functional
1 parent adc31bb commit c41af12

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed
 

‎python/core/auto_generated/symbology/qgsstyle.sip.in

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,6 @@ Adds a new tag and returns the tag's id
8585
:return: returns an int, which is the DB id of the new tag created, 0 if the tag couldn't be created
8686
%End
8787

88-
int addSmartgroup( const QString &name, const QString &op, const QgsSmartConditionMap &conditions );
89-
%Docstring
90-
Adds a new smartgroup to the database and returns the id
91-
92-
:param name: is the name of the new Smart Group to be added
93-
:param op: is the operator between the conditions; AND/OR as QString
94-
:param conditions: are the smart group conditions
95-
%End
9688

9789
QStringList tags() const;
9890
%Docstring

‎src/core/symbology/qgsstyle.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,10 @@ class CORE_EXPORT QgsStyle : public QObject
135135
* \param name is the name of the new Smart Group to be added
136136
* \param op is the operator between the conditions; AND/OR as QString
137137
* \param conditions are the smart group conditions
138+
*
139+
* \note Not available from Python bindings
138140
*/
139-
int addSmartgroup( const QString &name, const QString &op, const QgsSmartConditionMap &conditions );
141+
int addSmartgroup( const QString &name, const QString &op, const QgsSmartConditionMap &conditions ) SIP_SKIP;
140142

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

0 commit comments

Comments
 (0)
Please sign in to comment.