Replace various Q_* and QT_* defines with TQ_* and TQT_*

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 283ace14ed)
r14.1.x
Michele Calgaro 1 year ago
parent e68cb87f51
commit a9e5b8a1a4
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -132,7 +132,7 @@ $allowed_k_dcop_accesors_re = join("|", @allowed_k_dcop_accesors);
QT_STATIC_CONST => 'static const', QT_STATIC_CONST => 'static const',
Q_EXPORT => '', Q_EXPORT => '',
Q_EXPORT_CODECS_BIG5 => '', Q_EXPORT_CODECS_BIG5 => '',
Q_REFCOUNT => '', TQ_REFCOUNT => '',
TQM_EXPORT_CANVAS => '', TQM_EXPORT_CANVAS => '',
TQM_EXPORT_DNS => '', TQM_EXPORT_DNS => '',
TQM_EXPORT_ICONVIEW => '', TQM_EXPORT_ICONVIEW => '',
@ -544,7 +544,7 @@ LOOP:
|| $p =~ /^\s*Q_GADGET/ || $p =~ /^\s*Q_GADGET/
|| $p =~ /^\s*TQ_OVERRIDE/ # and TQ_OVERRIDE || $p =~ /^\s*TQ_OVERRIDE/ # and TQ_OVERRIDE
|| $p =~ /^\s*TQ_SETS/ || $p =~ /^\s*TQ_SETS/
|| $p =~ /^\s*Q_DUMMY_COMPARISON_OPERATOR/ || $p =~ /^\s*TQ_DUMMY_COMPARISON_OPERATOR/
|| $p =~ /^\s*K_SYCOCATYPE/ # and K_SYCOCA stuff || $p =~ /^\s*K_SYCOCATYPE/ # and K_SYCOCA stuff
|| $p =~ /^\s*K_SYCOCAFACTORY/ # || $p =~ /^\s*K_SYCOCAFACTORY/ #
|| $p =~ /^\s*KSVG_/ # and KSVG stuff ;) || $p =~ /^\s*KSVG_/ # and KSVG stuff ;)
@ -862,7 +862,7 @@ sub identifyDecl
(?:\s*TQ[A-Z_]*EXPORT[A-Z_]*)? (?:\s*TQ[A-Z_]*EXPORT[A-Z_]*)?
(?:\s*Q[A-Z_]*EXPORT[A-Z_]*)? (?:\s*Q[A-Z_]*EXPORT[A-Z_]*)?
(?:\s*TQ_PACKED)? (?:\s*TQ_PACKED)?
(?:\s*Q_REFCOUNT)? (?:\s*TQ_REFCOUNT)?
\s+([\w_]+ # 3 name \s+([\w_]+ # 3 name
(?:<[\w_ :,]+?>)? # maybe explicit template (?:<[\w_ :,]+?>)? # maybe explicit template
# (eat chars between <> non-hungry) # (eat chars between <> non-hungry)

@ -117,7 +117,7 @@ sub cplusplusToCSharp
return "IntPtr"; return "IntPtr";
} elsif ( $cplusplusType =~ /^TQUuid/ ) { } elsif ( $cplusplusType =~ /^TQUuid/ ) {
return "IntPtr"; return "IntPtr";
} elsif ( $cplusplusType =~ /^Q_REFCOUNT/ ) { } elsif ( $cplusplusType =~ /^TQ_REFCOUNT/ ) {
return "IntPtr"; return "IntPtr";
} elsif ( $cplusplusType =~ /^EventRef/ ) { } elsif ( $cplusplusType =~ /^EventRef/ ) {
return "IntPtr"; return "IntPtr";
@ -223,7 +223,7 @@ sub cplusplusToPInvoke
return "RawObject"; return "RawObject";
} elsif ( $cplusplusType =~ /^TQUuid/ ) { } elsif ( $cplusplusType =~ /^TQUuid/ ) {
return "RawObject"; return "RawObject";
} elsif ( $cplusplusType =~ /^Q_REFCOUNT/ ) { } elsif ( $cplusplusType =~ /^TQ_REFCOUNT/ ) {
return "RawObject"; return "RawObject";
} elsif ( $cplusplusType =~ /^EventRef/ ) { } elsif ( $cplusplusType =~ /^EventRef/ ) {
return "RawObject"; return "RawObject";

Loading…
Cancel
Save