forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -444,7 +444,7 @@ void QmlProfilerEventsView::QmlProfilerEventsViewPrivate::buildModelFromList( co
|
|||||||
|
|
||||||
if (m_fieldShown[Percent]) {
|
if (m_fieldShown[Percent]) {
|
||||||
newRow << new EventsViewItem(QString::number(binding->percentOfTime,'f',2)+QLatin1String(" %"));
|
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]) {
|
if (m_fieldShown[TotalDuration]) {
|
||||||
|
|||||||
Reference in New Issue
Block a user