Skip to content
Permalink
Browse files
[sipify] Fix exposing members and default struct accessors
  • Loading branch information
m-kuhn committed Apr 7, 2017
1 parent c65f762 commit ebc1afe82cc1811f3de159c220189c9b799a6a6a
Showing with 4 additions and 4 deletions.
  1. +2 −3 tests/scripts/sipifyheader.expected.sip
  2. +2 −1 tests/scripts/sipifyheader.h
@@ -51,14 +51,12 @@ class QgsSipifyHeader : QtClass<QVariant>
%TypeHeaderCode
#include "sipifyheader.h"
%End

%ConvertToSubClassCode
if ( sipCpp->headerType() == QgsSipifyHeader::Special )
sipType = sipType_QgsSpecialSipifyHeader;
else
sipType = sipType_QgsStandardSipifyHeader;
%End

public:
enum MyEnum
{
@@ -194,12 +192,13 @@ class ClassWithPrivateInheritanceOnly
%TypeHeaderCode
#include "sipifyheader.h"
%End
public:
explicit ClassWithPrivateInheritanceOnly();
%Docstring
A constructor with definition in header on several lines
%End

}
};

class AbstractClass /Abstract/
{
@@ -248,6 +248,7 @@ class CORE_EXPORT QgsSipifyHeader : public QtClass<QVariant>, private Ui::QgsBas
*/
class CORE_EXPORT ClassWithPrivateInheritanceOnly : private QgsBaseClass
{
public:
//! A constructor with definition in header on several lines
explicit ClassWithPrivateInheritanceOnly()
: QtClass<QVariant>()
@@ -257,7 +258,7 @@ class CORE_EXPORT ClassWithPrivateInheritanceOnly : private QgsBaseClass
haveFun();
}

}
};

/**
* \class AbstractClass

0 comments on commit ebc1afe

Please sign in to comment.