forked from qt-creator/qt-creator
QmlProfiler: Make events view properly sortable
Add all the missing bits and actually use the filename for sorting. Change-Id: Icc2a07d297fe17423aa23bf58a602dfa0dcf5a87 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
@@ -48,11 +48,12 @@ class QmlProfilerEventChildrenView;
|
||||
class QmlProfilerEventRelativesView;
|
||||
|
||||
enum ItemRole {
|
||||
EventTypeIndexRole = Qt::UserRole+1,
|
||||
FilenameRole = Qt::UserRole+2,
|
||||
LineRole = Qt::UserRole+3,
|
||||
ColumnRole = Qt::UserRole+4,
|
||||
EventIdRole = Qt::UserRole+5
|
||||
SortRole = Qt::UserRole + 1, // Sort by data, not by displayed string
|
||||
EventTypeIndexRole,
|
||||
FilenameRole,
|
||||
LineRole,
|
||||
ColumnRole,
|
||||
EventIdRole
|
||||
};
|
||||
|
||||
class QmlProfilerEventsWidget : public QWidget
|
||||
|
||||
Reference in New Issue
Block a user