From f054d0dc8ff4f5a505c9d69b07d5dc5b0a637402 Mon Sep 17 00:00:00 2001
From: Christiaan Janssen <christiaan.janssen@nokia.com>
Date: Mon, 18 Jul 2011 14:03:09 +0200
Subject: [PATCH] QmlProfiler: fixed sorting of percentage column

Change-Id: Ic76135e2e401ee028a986f1f57186cb2144ed40a
Reviewed-on: http://codereview.qt.nokia.com/1755
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
---
 src/plugins/qmlprofiler/qmlprofilereventview.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/qmlprofiler/qmlprofilereventview.cpp b/src/plugins/qmlprofiler/qmlprofilereventview.cpp
index b1856168883..5989f962127 100644
--- a/src/plugins/qmlprofiler/qmlprofilereventview.cpp
+++ b/src/plugins/qmlprofiler/qmlprofilereventview.cpp
@@ -444,7 +444,7 @@ void QmlProfilerEventsView::QmlProfilerEventsViewPrivate::buildModelFromList( co
 
         if (m_fieldShown[Percent]) {
             newRow << new EventsViewItem(QString::number(binding->percentOfTime,'f',2)+QLatin1String(" %"));
-            newRow.last()->setData(QVariant(binding->eventType));
+            newRow.last()->setData(QVariant(binding->percentOfTime));
         }
 
         if (m_fieldShown[TotalDuration]) {
-- 
GitLab