From dbec6e245f295cd32428dd1b7a4e67eebefd576f Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Thu, 22 Sep 2016 19:57:57 +0200 Subject: [PATCH] QmlDesigner: Fix compiler warning ...and the indentation. Change-Id: I1114d36ea36f17acab5a9afb35a6654380967e3e Reviewed-by: Thomas Hartmann --- .../components/stateseditor/stateseditorview.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/plugins/qmldesigner/components/stateseditor/stateseditorview.cpp b/src/plugins/qmldesigner/components/stateseditor/stateseditorview.cpp index dd74878bab8..54c0b87f1ba 100644 --- a/src/plugins/qmldesigner/components/stateseditor/stateseditorview.cpp +++ b/src/plugins/qmldesigner/components/stateseditor/stateseditorview.cpp @@ -372,11 +372,12 @@ void StatesEditorView::nodeOrderChanged(const NodeListProperty &listProperty, co void StatesEditorView::bindingPropertiesChanged(const QList &propertyList, AbstractView::PropertyChangeFlags /*propertyChange*/) { - foreach (const BindingProperty &property, propertyList) { - if (property.name() == "when" && QmlModelState::isValidQmlModelState(property.parentModelNode())) - resetModel(); - } + Q_UNUSED(propertyChange) + foreach (const BindingProperty &property, propertyList) { + if (property.name() == "when" && QmlModelState::isValidQmlModelState(property.parentModelNode())) + resetModel(); + } } void StatesEditorView::currentStateChanged(const ModelNode &node)