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:
Ulf Hermann
2014-07-04 14:10:37 +02:00
parent 6a93d41831
commit cb7963bc18
2 changed files with 33 additions and 17 deletions

View File

@@ -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