forked from qt-creator/qt-creator
QmlDesigner: Fix function name
Change-Id: Ie32583be28bca622c668de7a89a206aeca745683 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -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.");
|
||||||
|
@@ -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();
|
||||||
}
|
}
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user