diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2016-05-02 12:18:57 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2016-05-03 15:00:50 +0000 |
commit | e5a38bacc4bcfd770f56122b86233ff35b0579ac (patch) | |
tree | db03f5112d616cbab6f5b9401cf296fa759fa54b /src/plugins/qmlprofiler/flamegraphmodel.h | |
parent | 08655de4a5891ab3a8fe07970c826958be7c52fc (diff) |
Move QmlProfiler specific files from qmldebug to qmlprofiler
These file were not used anywhere else and had no business to be in
qmldebug to begin with. Moving them allows us to drop a number of
namespace qualifications and forces us to rename a few local symbols
in other classes in order to avoid name clashes.
Change-Id: I658ed455eec027cbaddacf2980d2ea6827ae6205
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Diffstat (limited to 'src/plugins/qmlprofiler/flamegraphmodel.h')
-rw-r--r-- | src/plugins/qmlprofiler/flamegraphmodel.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/plugins/qmlprofiler/flamegraphmodel.h b/src/plugins/qmlprofiler/flamegraphmodel.h index 9619d7a5e84..d5815321d46 100644 --- a/src/plugins/qmlprofiler/flamegraphmodel.h +++ b/src/plugins/qmlprofiler/flamegraphmodel.h @@ -25,10 +25,10 @@ #pragma once -#include <qmlprofiler/qmlprofilerdatamodel.h> -#include <qmlprofiler/qmlprofilernotesmodel.h> -#include <qmldebug/qmlprofilereventtypes.h> -#include <qmldebug/qmlprofilereventlocation.h> +#include "qmlprofilerdatamodel.h" +#include "qmlprofilernotesmodel.h" +#include "qmlprofilereventtypes.h" +#include "qmlprofilereventlocation.h" #include <QSet> #include <QVector> @@ -55,19 +55,19 @@ class FlameGraphModel : public QAbstractItemModel Q_ENUMS(Role) public: enum Role { - TypeId = Qt::UserRole + 1, // Sort by data, not by displayed string - Type, - Duration, - CallCount, - Details, - Filename, - Line, - Column, - Note, - TimePerCall, - TimeInPercent, - RangeType, - Location, + TypeIdRole = Qt::UserRole + 1, // Sort by data, not by displayed string + TypeRole, + DurationRole, + CallCountRole, + DetailsRole, + FilenameRole, + LineRole, + ColumnRole, + NoteRole, + TimePerCallRole, + TimeInPercentRole, + RangeTypeRole, + LocationRole, MaxRole }; @@ -100,7 +100,7 @@ private: int m_modelId; QmlProfilerModelManager *m_modelManager; - QList<QmlDebug::RangeType> m_acceptedTypes; + QList<RangeType> m_acceptedTypes; QSet<int> m_typeIdsWithNotes; }; |