aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler/inputeventsmodel.h
diff options
context:
space:
mode:
authorAntti Määttä <[email protected]>2022-09-26 09:02:16 +0300
committerAntti Määttä <[email protected]>2022-09-29 11:04:24 +0000
commitb16d1e2b1141e1c1500f4b01f9b8ac2777997fae (patch)
tree9bedb359000e7e4661ec66e168d700d1dba6b847 /src/plugins/qmlprofiler/inputeventsmodel.h
parent0f49728c329a4bbf575a36b0b18e169dc4c82ac0 (diff)
Add more checks for backwards compatibility
Stop using MaximumXXXType in events where they might be saved into trace files. It makes older traces incompatible with new traces if new fields are added since new versions treat them as valid events. Instead use UndefinedXXXType that doesn't change if new fields are added. Add checks for event types greater or equal to MaximumXXXType where they are missing so that older versions do not process new unrecognized events. Fix opening old traces by checking missmatch between quick3d event and the range type. Fixes: QTCREATORBUG-28146 Change-Id: I8950da2d636ef1fedf4500916896a9ecae222166 Reviewed-by: Ulf Hermann <[email protected]> Reviewed-by: <[email protected]>
Diffstat (limited to 'src/plugins/qmlprofiler/inputeventsmodel.h')
-rw-r--r--src/plugins/qmlprofiler/inputeventsmodel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmlprofiler/inputeventsmodel.h b/src/plugins/qmlprofiler/inputeventsmodel.h
index dbd1515894d..bdfcf1dc241 100644
--- a/src/plugins/qmlprofiler/inputeventsmodel.h
+++ b/src/plugins/qmlprofiler/inputeventsmodel.h
@@ -36,7 +36,7 @@ class InputEventsModel : public QmlProfilerTimelineModel
public:
struct Item {
- Item(InputEventType type = MaximumInputEventType, int a = 0, int b = 0);
+ Item(InputEventType type = UndefinedInputEventType, int a = 0, int b = 0);
InputEventType type;
int a;
int b;