aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler/flamegraphmodel.h
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2020-12-08 17:32:27 +0100
committerJarek Kobus <jaroslaw.kobus@qt.io>2020-12-11 14:16:42 +0000
commitd42f38cc96a58593e8a20df89b0253afb478cc6d (patch)
tree9fb98a58b3ecd641318460955c1358fdbcb6a639 /src/plugins/qmlprofiler/flamegraphmodel.h
parentdce06016efafe30a0b18030c129e8badb762413e (diff)
Use Q_ENUM instead of obsoleted Q_ENUMS
It fixes the following warning: Use Q_ENUM instead of Q_ENUMS [clazy-qenums] In addition, it amends 8588cf268f774dbbc242f0805669787c7bc310ac where WidgetStyle got removed. Change-Id: I4d72dd762a2f18ba8886360b3581b4ef19bf4c5e Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/qmlprofiler/flamegraphmodel.h')
-rw-r--r--src/plugins/qmlprofiler/flamegraphmodel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmlprofiler/flamegraphmodel.h b/src/plugins/qmlprofiler/flamegraphmodel.h
index a5549c934d6..456502b9322 100644
--- a/src/plugins/qmlprofiler/flamegraphmodel.h
+++ b/src/plugins/qmlprofiler/flamegraphmodel.h
@@ -55,7 +55,6 @@ struct FlameGraphData {
class FlameGraphModel : public QAbstractItemModel
{
Q_OBJECT
- Q_ENUMS(Role)
public:
enum Role {
TypeIdRole = Qt::UserRole + 1, // Sort by data, not by displayed string
@@ -74,6 +73,7 @@ public:
MemoryRole,
MaxRole
};
+ Q_ENUM(Role)
FlameGraphModel(QmlProfilerModelManager *modelManager, QObject *parent = nullptr);