forked from qt-creator/qt-creator
QmlProfiler: Make statistics models QAbstractItemModels
This way we will be able to replace the QStandardItemModels in a next step. Change-Id: I863fde958d29c8bf8c36aa1f501cb1224720ad7a Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -42,39 +42,6 @@ namespace Internal {
|
||||
class QmlProfilerStatisticsMainView;
|
||||
class QmlProfilerStatisticsRelativesView;
|
||||
|
||||
enum ItemRole {
|
||||
SortRole = Qt::UserRole + 1, // Sort by data, not by displayed string
|
||||
TypeIdRole,
|
||||
FilenameRole,
|
||||
LineRole,
|
||||
ColumnRole
|
||||
};
|
||||
|
||||
enum MainField {
|
||||
MainLocation,
|
||||
MainType,
|
||||
MainTimeInPercent,
|
||||
MainTotalTime,
|
||||
MainSelfTimeInPercent,
|
||||
MainSelfTime,
|
||||
MainCallCount,
|
||||
MainTimePerCall,
|
||||
MainMedianTime,
|
||||
MainMaxTime,
|
||||
MainMinTime,
|
||||
MainDetails,
|
||||
MaxMainField
|
||||
};
|
||||
|
||||
enum RelativeField {
|
||||
RelativeLocation,
|
||||
RelativeType,
|
||||
RelativeTotalTime,
|
||||
RelativeCallCount,
|
||||
RelativeDetails,
|
||||
MaxRelativeField
|
||||
};
|
||||
|
||||
class QmlProfilerStatisticsView : public QmlProfilerEventsView
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
Reference in New Issue
Block a user