QmlDesigner: Fix function name

Change-Id: Ie32583be28bca622c668de7a89a206aeca745683
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Thomas Hartmann
2017-05-11 20:38:39 +02:00
parent 39d32e7dba
commit 2e5d91d9de
3 changed files with 4 additions and 4 deletions

View File

@@ -210,7 +210,7 @@ QVariant NavigatorTreeModel::data(const QModelIndex &index, int role) const
return QVariant(); return QVariant();
if (role == ItemIsVisibleRole) //independent of column 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 (index.column() == 0) {
if (role == Qt::DisplayRole) { 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."); "This is independent of the visibility property in QML.");
} else if (index.column() == 2) { //visible } else if (index.column() == 2) { //visible
if (role == Qt::CheckStateRole) 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) else if (role == Qt::ToolTipRole)
return tr("Toggles whether this item is exported as an " return tr("Toggles whether this item is exported as an "
"alias property of the root item."); "alias property of the root item.");

View File

@@ -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(); return modelNode.auxiliaryData("invisible").toBool();
} }

View File

@@ -85,7 +85,7 @@ public:
void bindingPropertiesChanged(const QList<BindingProperty> &propertyList, PropertyChangeFlags) override; void bindingPropertiesChanged(const QList<BindingProperty> &propertyList, PropertyChangeFlags) override;
void handleChangedExport(const ModelNode &modelNode, bool exported); void handleChangedExport(const ModelNode &modelNode, bool exported);
bool isNodeVisible(const ModelNode &modelNode) const; bool isNodeInvisible(const ModelNode &modelNode) const;
private: private:
ModelNode modelNodeForIndex(const QModelIndex &modelIndex) const; ModelNode modelNodeForIndex(const QModelIndex &modelIndex) const;