summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/syncqt.pl5
-rw-r--r--src/gui/kernel/qevent.h7
2 files changed, 11 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
diff --git a/src/gui/kernel/qevent.h b/src/gui/kernel/qevent.h
index 2b1c6a6e31..0a8a1925e7 100644
--- a/src/gui/kernel/qevent.h
+++ b/src/gui/kernel/qevent.h
@@ -827,7 +827,14 @@ private:
qint64 m_numericId;
};
Q_DECLARE_TYPEINFO(QPointingDeviceUniqueId, Q_MOVABLE_TYPE);
+
+#if 0
+#pragma qt_sync_suspend_processing
+#endif
template <> class QList<QPointingDeviceUniqueId> {}; // to prevent instantiation: use QVector instead
+#if 0
+#pragma qt_sync_resume_processing
+#endif
Q_GUI_EXPORT bool operator==(QPointingDeviceUniqueId lhs, QPointingDeviceUniqueId rhs) Q_DECL_NOTHROW;
inline bool operator!=(QPointingDeviceUniqueId lhs, QPointingDeviceUniqueId rhs) Q_DECL_NOTHROW