Skip to content

Commit

Permalink
[sipify] remove Q_INVOKABLE
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Apr 19, 2017
1 parent a260146 commit 652d6b4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/sipify.pl
Expand Up @@ -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/){
Expand Down
5 changes: 5 additions & 0 deletions tests/scripts/sipifyheader.expected.sip
Expand Up @@ -237,6 +237,11 @@ Removing function body with virtual const reference

This<Member> shouldBeIncluded;

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

bool initializedMember;

protected:
Expand Down
2 changes: 2 additions & 0 deletions tests/scripts/sipifyheader.h
Expand Up @@ -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:
Expand Down

0 comments on commit 652d6b4

Please sign in to comment.