Commit 2e5d91d9 authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner: Fix function name

Change-Id: Ie32583be28bca622c668de7a89a206aeca745683
Reviewed-by: Tim Jenssen's avatarTim Jenssen <tim.jenssen@qt.io>
parent 39d32e7d
......@@ -210,7 +210,7 @@ QVariant NavigatorTreeModel::data(const QModelIndex &index, int role) const
return QVariant();
if (role == ItemIsVisibleRole) //independent of column
return m_view->isNodeVisible(modelNode) ? Qt::Unchecked : Qt::Checked;
return m_view->isNodeInvisible(modelNode) ? Qt::Unchecked : Qt::Checked;
if (index.column() == 0) {
if (role == Qt::DisplayRole) {
......@@ -245,7 +245,7 @@ QVariant NavigatorTreeModel::data(const QModelIndex &index, int role) const
"This is independent of the visibility property in QML.");
} else if (index.column() == 2) { //visible
if (role == Qt::CheckStateRole)
return m_view->isNodeVisible(modelNode) ? Qt::Unchecked : Qt::Checked;
return m_view->isNodeInvisible(modelNode) ? Qt::Unchecked : Qt::Checked;
else if (role == Qt::ToolTipRole)
return tr("Toggles whether this item is exported as an "
"alias property of the root item.");
......
......@@ -197,7 +197,7 @@ void NavigatorView::handleChangedExport(const ModelNode &modelNode, bool exporte
}
}
bool NavigatorView::isNodeVisible(const ModelNode &modelNode) const
bool NavigatorView::isNodeInvisible(const ModelNode &modelNode) const
{
return modelNode.auxiliaryData("invisible").toBool();
}
......
......@@ -85,7 +85,7 @@ public:
void bindingPropertiesChanged(const QList<BindingProperty> &propertyList, PropertyChangeFlags) override;
void handleChangedExport(const ModelNode &modelNode, bool exported);
bool isNodeVisible(const ModelNode &modelNode) const;
bool isNodeInvisible(const ModelNode &modelNode) const;
private:
ModelNode modelNodeForIndex(const QModelIndex &modelIndex) const;
......
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