Commit a27003c4 authored by Tim Jenssen's avatar Tim Jenssen

QmlDesigner: adding text at root item error case

Change-Id: I2a9533d3d3eb71e60e3d0328e651e40676b24f14
Reviewed-by: Riitta-Leena Miettinen's avatarLeena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Tim Jenssen's avatarTim Jenssen <tim.jenssen@qt.io>
parent a071871c
......@@ -365,7 +365,12 @@ void NavigatorTreeModel::updateItemRow(const ModelNode &modelNode, ItemRow items
if (currentQmlObjectNode.hasError()) {
items.idItem->setData(true, ErrorRole);
items.idItem->setToolTip(currentQmlObjectNode.error());
QString errorString = currentQmlObjectNode.error();
if (currentQmlObjectNode.isRootNode()) {
errorString.append(QString("\n%1").arg(tr("Changing the setting \"%1\" might solve the issue.").arg(
tr("Use QML emulation layer that is built with the selected Qt"))));
}
items.idItem->setToolTip(errorString);
items.idItem->setIcon(Utils::Icons::WARNING.icon());
} else {
items.idItem->setData(false, ErrorRole);
......
......@@ -222,7 +222,7 @@
<item>
<widget class="QRadioButton" name="useQtRelatedPuppetRadioButton">
<property name="text">
<string>Use QML emulation layer that is built by the selected Qt</string>
<string>Use QML emulation layer that is built with the selected Qt</string>
</property>
</widget>
</item>
......
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