QmlDesigner: Fix eyeball tooltip

Fixes: QDS-8859
Change-Id: I5558984e90e88fcc16946ae8c52a43635730f5be
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
Miikka Heikkinen
2023-01-24 17:22:53 +02:00
parent 3070ca4fd9
commit 04e1dd05c8

View File

@@ -244,7 +244,7 @@ QVariant NavigatorTreeModel::data(const QModelIndex &index, int role) const
if (role == Qt::CheckStateRole) if (role == Qt::CheckStateRole)
return m_view->isNodeInvisible(modelNode) ? Qt::Unchecked : Qt::Checked; return m_view->isNodeInvisible(modelNode) ? Qt::Unchecked : Qt::Checked;
else if (role == Qt::ToolTipRole && !modelNodeForIndex(index).isRootNode()) else if (role == Qt::ToolTipRole && !modelNodeForIndex(index).isRootNode())
return tr("Toggles the visibility of this component in the 2D view.\n" return tr("Toggles the visibility of this component in the 2D and 3D views.\n"
"This is independent of the visibility property."); "This is independent of the visibility property.");
} else if (index.column() == ColumnType::Lock) { // lock } else if (index.column() == ColumnType::Lock) { // lock
if (role == Qt::CheckStateRole) if (role == Qt::CheckStateRole)