Attempt to force dcopidl to accept the TQ_OBJECT macro

(cherry picked from commit aa492f2e08)
v3.5.13-sru
Timothy Pearson 13 years ago committed by Slávek Banko
parent 48f0f62a9a
commit a9c64e7a80

@ -115,6 +115,7 @@ $allowed_k_dcop_accesors_re = join("|", @allowed_k_dcop_accesors);
Q_WS_QWS => 'undef',
Q_WS_MAC => 'undef',
Q_OBJECT => <<'CODE',
TQ_OBJECT => <<'CODE',
public:
virtual QMetaObject *metaObject() const;
virtual const char *className() const;
@ -373,7 +374,7 @@ sub readSourceLine
=head2 readCxxLine
Reads a C++ source line, skipping comments, blank lines,
preprocessor tokens and the Q_OBJECT macro
preprocessor tokens and the Q_OBJECT/TQ_OBJECT macros
=cut
@ -405,6 +406,10 @@ LOOP:
push @inputqueue, @codeqobject;
next;
}
if ( $p =~ /^\s*TQ_OBJECT/ ) {
push @inputqueue, @codeqobject;
next;
}
# Hack, waiting for real handling of preprocessor defines
$p =~ s/QT_STATIC_CONST/static const/;
$p =~ s/KSVG_GET/KJS::Value get();/;

Loading…
Cancel
Save