forked from qt-creator/qt-creator
QmlProfiler: added tooltip for non-optimized bindings
Change-Id: I4500b168c016e7d5525124996be4886e481065d9 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
This commit is contained in:
@@ -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) {
|
||||
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));
|
||||
|
Reference in New Issue
Block a user