summaryrefslogtreecommitdiffstats
path: root/bin/syncqt.pl
diff options
context:
space:
mode:
Diffstat (limited to 'bin/syncqt.pl')
-rwxr-xr-xbin/syncqt.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/syncqt.pl b/bin/syncqt.pl
index 8226edfb76..11ae5845eb 100755
--- a/bin/syncqt.pl
+++ b/bin/syncqt.pl
@@ -212,6 +212,7 @@ sub classNames {
$$clean = 1;
$$requires = "";
+ my $suspended = 0;
my $ihdrbase = basename($iheader);
my $parsable = "";
@@ -224,9 +225,11 @@ sub classNames {
$$clean = 0 if ($line =~ m/^#pragma qt_sync_skip_header_check/);
return @ret if($line =~ m/^#pragma qt_sync_stop_processing/);
push(@ret, $1) if($line =~ m/^#pragma qt_class\(([^)]*)\)[\r\n]*$/);
+ $suspended = 1 if ($line =~ m/^#pragma qt_sync_suspend_processing/);
+ $suspended = 0 if ($line =~ m/^#pragma qt_sync_resume_processing/);
$line = 0;
}
- if($line) {
+ if ($line && !$suspended) {
$line =~ s,//.*$,,; #remove c++ comments
$line .= ";" if($line =~ m/^Q_[A-Z_0-9]*\(.*\)[\r\n]*$/); #qt macro
$line .= ";" if($line =~ m/^QT_(BEGIN|END)_HEADER[\r\n]*$/); #qt macro