dolik.rce Messages: 1758 Registered: August 2008 Location: Czech Republic
koldo wrote on Tue, 08 March 2011 14:01
I would like to use void Ctrl::Show(bool) method in layout designer. It would be necessary to change it to return Ctrl&.
What do you think?
Currently it returns void, right? I guess there should not be a problem if chaining is enabled. It should not break any existing code and it might make our life bit easier... IMHO it makes sense to have a possibility to hide a widget by default directly from layout editor
Just a note: If this change is made then also Hide() should return &Ctrl for consistency...