tiled icon indicating copy to clipboard operation
tiled copied to clipboard

Allow resetting overridden properties individually for template instances

Open bjorn opened this issue 6 years ago • 4 comments

While it is currently possible to reset a template instance entirely, it should be possible to reset properties like name, type, size and rotation individually. This could be achieved by a small button in the Properties view for each property.

In addition it would be nice to highlight overridden properties (in bold for example).

Note that Qt Designer is doing both these things (featuring a reset button and highlighting changed properties in bold), so its source may give some idea of how to implement this.

A reset button is also already implemented for color properties, though I'm not sure how suitable its implementation is for this case.

bjorn avatar Sep 06 '17 09:09 bjorn

@thabetx Did I understand correctly that you already made some progress on this?

bjorn avatar Sep 06 '17 09:09 bjorn

@bjorn I didn't plan to implement this feature, but I've experimented with the property browser when I was working on locking properties.

thabetx avatar Sep 06 '17 10:09 thabetx

Is this task here done and can be closed? As we have the Reset buttons now?

UliAbo avatar Aug 09 '22 15:08 UliAbo

Is this task here done and can be closed? As we have the Reset buttons now?

No, this task is not done because it's not talking about custom properties, but "properties like name, type, size and rotation". It refers to the "Reset Template Instance(s)" context menu action, which resets a template instance entirely, where it's not possible to just reset its rotation, for example.

bjorn avatar Aug 11 '22 07:08 bjorn