Skip to content
Permalink
Browse files
remove unneeded SIP_CONVERT_TO_SUBCLASS_CODE
  • Loading branch information
domi4484 committed Jan 10, 2022
1 parent 9f7353b commit 6d2c4245ce677ff185a85e942b4fec00636269f0
@@ -21,14 +21,6 @@ Abstract base class - its implementations define different approaches to the lab

%TypeHeaderCode
#include "qgsvectorlayerlabeling.h"
%End
%ConvertToSubClassCode
if ( sipCpp->type() == "simple" )
sipType = sipType_QgsVectorLayerSimpleLabeling;
else if ( sipCpp->type() == "rule-based" )
sipType = sipType_QgsRuleBasedLabeling;
else
sipType = 0;
%End
public:
QgsAbstractVectorLayerLabeling();
@@ -41,6 +41,8 @@ class QgsRuleBasedLabelProvider;
*/
class CORE_EXPORT QgsRuleBasedLabeling : public QgsAbstractVectorLayerLabeling
{
Q_OBJECT

public:
class Rule;
typedef QList<QgsRuleBasedLabeling::Rule *> RuleList;
@@ -42,17 +42,6 @@ class CORE_EXPORT QgsAbstractVectorLayerLabeling : public QObject
{
Q_OBJECT

#ifdef SIP_RUN
SIP_CONVERT_TO_SUBCLASS_CODE
if ( sipCpp->type() == "simple" )
sipType = sipType_QgsVectorLayerSimpleLabeling;
else if ( sipCpp->type() == "rule-based" )
sipType = sipType_QgsRuleBasedLabeling;
else
sipType = 0;
SIP_END
#endif

public:
//! Default constructor
QgsAbstractVectorLayerLabeling() = default;
@@ -167,6 +156,8 @@ class CORE_EXPORT QgsAbstractVectorLayerLabeling : public QObject
*/
class CORE_EXPORT QgsVectorLayerSimpleLabeling : public QgsAbstractVectorLayerLabeling
{
Q_OBJECT

public:
//! Constructs simple labeling configuration with given initial settings
explicit QgsVectorLayerSimpleLabeling( const QgsPalLayerSettings &settings );

0 comments on commit 6d2c424

Please sign in to comment.