Commit ca55fd8f authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

QmlDesigner: Fix indentation and add braces



Change-Id: I2cc4d52aff63f236a7027a9418f623c20a9fe33c
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent 8bbeac0b
...@@ -100,8 +100,9 @@ public: ...@@ -100,8 +100,9 @@ public:
if (itemNode.isValid()) { if (itemNode.isValid()) {
bool flag = false; bool flag = false;
if (itemNode.modelNode().hasProperty(m_propertyName) if (itemNode.modelNode().hasProperty(m_propertyName)
|| itemNode.propertyAffectedByCurrentState(m_propertyName)) || itemNode.propertyAffectedByCurrentState(m_propertyName)) {
flag = itemNode.modelValue(m_propertyName).toBool(); flag = itemNode.modelValue(m_propertyName).toBool();
}
defaultAction()->setChecked(flag); defaultAction()->setChecked(flag);
} else { } else {
defaultAction()->setEnabled(false); defaultAction()->setEnabled(false);
......
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