diff options
author | Milian Wolff <milian.wolff@kdab.com> | 2017-07-05 21:55:10 +0200 |
---|---|---|
committer | Milian Wolff <milian.wolff@kdab.com> | 2017-09-06 11:45:58 +0000 |
commit | 1bb09847391d70fad32dbb0ee5b84e58bab9cf31 (patch) | |
tree | a3e130c4729f8c8e0d081e8bef76d938a1a51542 | |
parent | e2cd1f6164a9fd080d929771bb8d8ee5ad08bf4d (diff) |
Add Q_ENUM for PerfHeader::Feature
This prettifies the debug output of warnings like this one:
Before:
warning: perfparser/unknown: feature not properly read 13 244 212
After:
warning: perfparser/unknown: feature not properly read PerfHeader::Feature(CPU_TOPOLOGY) 244 212
Change-Id: I8cf0921eabd0fb8971246de58fd4f2e2c0f6b472
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
-rw-r--r-- | app/perfheader.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/perfheader.h b/app/perfheader.h index 986a18b..36f05b4 100644 --- a/app/perfheader.h +++ b/app/perfheader.h @@ -55,6 +55,7 @@ public: LAST_FEATURE, FEAT_BITS = 256, }; + Q_ENUM(Feature); QDataStream::ByteOrder byteOrder() const; |