diff options
author | Christiaan Janssen <christiaan.janssen@nokia.com> | 2012-05-31 12:00:49 +0200 |
---|---|---|
committer | Christiaan Janssen <christiaan.janssen@nokia.com> | 2012-05-31 12:30:30 +0200 |
commit | 651b9ff65eb0a6f2faf5ad1e3a64dd9f04841d4c (patch) | |
tree | c6d1fed66f1c088d9dd570b35dcb6064d51ba9f1 /src | |
parent | bc9bb6ec6986b2bf104b088b87de98748e662cdb (diff) | |
download | qt-creator-651b9ff65eb0a6f2faf5ad1e3a64dd9f04841d4c.tar.gz |
QmlProfiler: added tooltip for non-optimized bindings
Change-Id: I4500b168c016e7d5525124996be4886e481065d9
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/qmlprofiler/qmlprofilereventview.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilereventview.cpp b/src/plugins/qmlprofiler/qmlprofilereventview.cpp index 0e183a9461..e50363da1a 100644 --- a/src/plugins/qmlprofiler/qmlprofilereventview.cpp +++ b/src/plugins/qmlprofiler/qmlprofilereventview.cpp @@ -611,9 +611,15 @@ void QmlProfilerEventsMainView::QmlProfilerEventsMainViewPrivate::buildModelFrom if (m_fieldShown[Type]) { QString typeString = QmlProfilerEventsMainView::nameForType(binding->eventType); QString toolTipText; - if (binding->eventType == Binding && binding->bindingType == (int)OptimizedBinding) { - typeString = typeString + tr(" (Opt)"); - toolTipText = tr("Binding is evaluated by the optimized engine."); + if (binding->eventType == Binding) { + if (binding->bindingType == (int)OptimizedBinding) { + typeString = typeString + tr(" (Opt)"); + toolTipText = tr("Binding is evaluated by the optimized engine."); + } else if (binding->bindingType == (int)V8Binding) { + toolTipText = tr("Binding not optimized (eg. has side effects or assignments,\n" + "references to elements in other files, loops, etc.)"); + + } } newRow << new EventsViewItem(typeString); newRow.last()->setData(QVariant(typeString)); |