summaryrefslogtreecommitdiffstats
path: root/src/tools/tracegen/ctf.cpp
diff options
context:
space:
mode:
authorAntti Määttä <[email protected]>2023-01-31 11:05:03 +0200
committerAntti Määttä <[email protected]>2023-02-10 21:45:57 +0200
commit0510307ea1bfe2a1788738acb61890587e75dd5e (patch)
tree4e5a8257083cbde0284ea85e46b1f63b9cd64c9f /src/tools/tracegen/ctf.cpp
parent1d0da1d683cc71ea14cfd85f5e9aa227d7f75762 (diff)
tracegen: Add support for QSizeF and QRectF types
Pick-to: 6.5 Change-Id: Ie19523b84026312c3d5a597914abc2622dba3f68 Reviewed-by: Antti Määttä <[email protected]> Reviewed-by: Tomi Korpipää <[email protected]>
Diffstat (limited to 'src/tools/tracegen/ctf.cpp')
-rw-r--r--src/tools/tracegen/ctf.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/tools/tracegen/ctf.cpp b/src/tools/tracegen/ctf.cpp
index e49f5622c64..efb05e6cd70 100644
--- a/src/tools/tracegen/ctf.cpp
+++ b/src/tools/tracegen/ctf.cpp
@@ -257,6 +257,18 @@ static void writeTracepoint(QTextStream &stream,
stream << " + QStringLiteral(\"int32_t QSize_" << arg.name << "_height;\\n\\\n \")";
eventSize += QStringLiteral("8");
} break;
+ case Tracepoint::Field::QtRectF: {
+ stream << "QStringLiteral(\"float QRectF_" << arg.name << "_x;\\n\\\n \")";
+ stream << " + QStringLiteral(\"float QRectF_" << arg.name << "_y;\\n\\\n \")";
+ stream << " + QStringLiteral(\"float QRectF_" << arg.name << "_width;\\n\\\n \")";
+ stream << " + QStringLiteral(\"float QRectF_" << arg.name << "_height;\\n\\\n \")";
+ eventSize += QStringLiteral("16");
+ } break;
+ case Tracepoint::Field::QtSizeF: {
+ stream << "QStringLiteral(\"float QSizeF_" << arg.name << "_width;\\n\\\n \")";
+ stream << " + QStringLiteral(\"float QSizeF_" << arg.name << "_height;\\n\\\n \")";
+ eventSize += QStringLiteral("8");
+ } break;
case Tracepoint::Field::Unknown:
break;
case Tracepoint::Field::EnumeratedType: {