From aa492f2e083fb5d31ce98c0e24dd87c12fdd3ed2 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 27 Nov 2011 17:14:41 -0600 Subject: Attempt to force dcopidl to accept the TQ_OBJECT macro --- dcop/dcopidlng/kalyptus | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'dcop') diff --git a/dcop/dcopidlng/kalyptus b/dcop/dcopidlng/kalyptus index d76ff95b1..ccf2cad97 100644 --- a/dcop/dcopidlng/kalyptus +++ b/dcop/dcopidlng/kalyptus @@ -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();/; -- cgit v1.2.3