Skip to content
Permalink
Browse files
[sipify] remove Q_INVOKABLE
  • Loading branch information
3nids committed Apr 19, 2017
1 parent a260146 commit 652d6b4200abad8e4b1f775ab8a2b3e3386257b6
Showing with 10 additions and 0 deletions.
  1. +3 −0 scripts/sipify.pl
  2. +5 −0 tests/scripts/sipifyheader.expected.sip
  3. +2 −0 tests/scripts/sipifyheader.h
@@ -314,6 +314,9 @@ sub processDoxygenLine
$line = "$1QFlags<$flag> operator|($flag f1, QFlags<$flag> f2);\n";
}

# remove Q_INVOKABLE
$line =~ s/^(\s*)Q_INVOKABLE /$1/;

do {no warnings 'uninitialized';
# remove keywords
if ( $line =~ m/\boverride\b/){
@@ -237,6 +237,11 @@ Removing function body with virtual const reference

This<Member> shouldBeIncluded;

static QString invokableMethod();
%Docstring
:rtype: str
%End

bool initializedMember;

protected:
@@ -233,6 +233,8 @@ class CORE_EXPORT QgsSipifyHeader : public QtClass<QVariant>, private Ui::QgsBas

This<Member> shouldBeIncluded;

Q_INVOKABLE static QString invokableMethod();

bool initializedMember{ false };

protected:

0 comments on commit 652d6b4

Please sign in to comment.