Qt Designer: Enable reset property for multiselection.
authorFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Thu, 2 Apr 2015 14:44:29 +0000 (16:44 +0200)
committerFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Wed, 8 Apr 2015 13:30:33 +0000 (13:30 +0000)
commit186df9e4d18ad2f9a877022cee48ca054b32e6c8
tree030c0015e5173da89d7f5f1a68d314be1ae8ce66
parent0155bfd3864a3222d6f31c58a3f65cbed4c1223b
Qt Designer: Enable reset property for multiselection.

When working with a multiselection in the property editor, the reset
button was previously only enabled when the property was modified on
the selected/current widget. With this change, reset will always be
enabled when the property is modified in one of the widgets of
a multiselection. Unmodified widgets will be filtered out when
initializing the command.

The intended use case is mainly to enable conveniently clearing all
minimumSize/maximumSize constraints of a form by doing Ctrl+A
to select all and then do reset on the property.

Change-Id: Ideab87cab79e9404941d5594653f12c13515c1ae
Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
src/designer/src/components/propertyeditor/designerpropertymanager.cpp
src/designer/src/components/propertyeditor/designerpropertymanager.h
src/designer/src/lib/shared/qdesigner_propertycommand.cpp