Commit 54eedf4e authored by Ulf Hermann's avatar Ulf Hermann

QmlProfiler: Show Javascript calls in events view.

Change-Id: I11d22ce1423384f879e30ff9573f4d7d799535b1
Reviewed-by: default avatarKai Koehne <kai.koehne@digia.com>
parent 779ac697
......@@ -38,6 +38,7 @@ enum QmlEventType {
Creating,
Binding,
HandlingSignal,
Javascript,
PixmapCacheEvent,
SceneGraphFrameEvent,
......
......@@ -69,7 +69,7 @@ QmlProfilerEventsModelProxy::QmlProfilerEventsModelProxy(QmlProfilerModelManager
connect(modelManager->simpleModel(), SIGNAL(changed()), this, SLOT(dataChanged()));
d->modelId = modelManager->registerModelProxy();
d->acceptedTypes << QmlDebug::Compiling << QmlDebug::Creating << QmlDebug::Binding << QmlDebug::HandlingSignal;
d->acceptedTypes << QmlDebug::Compiling << QmlDebug::Creating << QmlDebug::Binding << QmlDebug::HandlingSignal << QmlDebug::Javascript;
}
QmlProfilerEventsModelProxy::~QmlProfilerEventsModelProxy()
......@@ -274,7 +274,7 @@ QmlProfilerEventRelativesModelProxy::QmlProfilerEventRelativesModelProxy(QmlProf
QTC_CHECK(eventsModel);
m_eventsModel = eventsModel;
m_acceptedTypes << QmlDebug::Compiling << QmlDebug::Creating << QmlDebug::Binding << QmlDebug::HandlingSignal;
m_acceptedTypes << QmlDebug::Compiling << QmlDebug::Creating << QmlDebug::Binding << QmlDebug::HandlingSignal << QmlDebug::Javascript;
}
QmlProfilerEventRelativesModelProxy::~QmlProfilerEventRelativesModelProxy()
......
......@@ -622,6 +622,7 @@ QString QmlProfilerEventsMainView::nameForType(int typeNumber)
case 2: return QmlProfilerEventsMainView::tr("Create");
case 3: return QmlProfilerEventsMainView::tr("Binding");
case 4: return QmlProfilerEventsMainView::tr("Signal");
case 5: return QmlProfilerEventsMainView::tr("Javascript");
}
return QString();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment