Yes, I was very much against it but have warmed up to the idea. We certainly considered the alternative of having a separate ButtonBlock/SegmentedButton element and a different abstract construct for Radio/CheckBox but in the end the simplicity of ButtonRow and ButtonColumn won out. It looks declarative by nature and fits well with existing concepts like Row and Column.
One part of the existing API we did not like was the groupType: "None/One/Many" as the names were confusing and would essentially override checkable and checked properties on the contained buttons. Instead we simplified it to "bool exclusive", meaning the checked property is exclusive on all items contained within it. If it is disabled, you can set those properties on the contained buttons as you please. This also solves some logical inconsistencies, since for instance there is no optional checkable property on a CheckButton, but Button has it. There is one thing with the existing implementation that is still open for debate though, and that is that the button only reacts to "clicked", meaning you have to press and depress a button for the exlusive selection to change, where in certain cases you might expect it to instantly change on press. I am not sure if this is something we want to dictate at the API level, or leave up to the implementation yet. Regards, Jens ________________________________________ From: qt-components-bounces+jens.bache-wiig=nokia....@qt.nokia.com [qt-components-bounces+jens.bache-wiig=nokia....@qt.nokia.com] On Behalf Of ext jari-pekka.nu...@nokia.com [jari-pekka.nu...@nokia.com] Sent: Friday, January 14, 2011 9:11 AM To: Malmqvist Mathias (Nokia-MS/London); Dietrich-De Gabriel (Nokia-MS/Oslo); qt-components@qt.nokia.com Cc: Cunha Leo (Nokia-MS-Qt/Oslo) Subject: Re: [Qt-components] Common API: ButtonRow and ButtonColumn Hi, No comments to what Mathias is proposing, but just wanted to say thanks for the name changes! ;-) Now it's nicely aligned with QML Row/Column items and IMHO way much more understandable component names. -- J-P Nurmi >-----Original Message----- >From: qt-components-bounces+jari-pekka.nurmi=nokia....@qt.nokia.com >[mailto:qt-components-bounces+jari-pekka.nurmi=nokia....@qt.nokia.com] >On Behalf Of ext mathias.malmqv...@nokia.com >Sent: 13. tammikuuta 2011 19:56 >To: Dietrich-De Gabriel (Nokia-MS/Oslo); qt-components@qt.nokia.com >Cc: Cunha Leo (Nokia-MS-Qt/Oslo) >Subject: Re: [Qt-components] Common API: ButtonRow and ButtonColumn > >Hi all, > >I can see you went for an API that works with all types of buttons, not >just >regular Buttons that make up what we earlier called SegmentedButton or >ButtonBlock. > >Can I just ask if you considered my ButtonBlock implementation (the >version >on my personal branch still pending MR) when you discussed the API? This >implementation is based on the earlier suggestions about not using a >graphical >element like the Button directly, but rather something similar to a >ListElement >that describes how the actual element in the row/column will be >configured. >I think Jens was in favour of this approach, and I think it has some >attractive >attributes too. > > > >Cheers >Mathias > > >________________________________________ >From: qt-components-bounces+mathias.malmqvist=nokia....@qt.nokia.com >[qt-components-bounces+mathias.malmqvist=nokia....@qt.nokia.com] on >behalf of ext gabriel.dietrich...@nokia.com [gabriel.dietrich- >d...@nokia.com] >Sent: Thursday, January 13, 2011 12:39 PM >To: qt-components@qt.nokia.com >Subject: [Qt-components] Common API: ButtonRow and ButtonColumn > >Hi, > >We just updated the common API page (QTCOMPONENTS-200) as you may have >noticed. This time we tried to solve several problems in one, namely the >segmented button and the mutually exclusive button checking. > >The two new components are ButtonColumn, and its sibling, ButtonRow. >They act as an encapsulator for buttons (Button, CheckBox, RadioButton, >or any component having the 'checked' property) Please, check the >samples there and feel free to comment, and/or point at what we might >have missed. > >Best regards, > >Gabriel de Dietrich >Senior Software Engineer >http://qt.nokia.com > > > >_______________________________________________ >Qt-components mailing list >Qt-components@qt.nokia.com >http://lists.qt.nokia.com/mailman/listinfo/qt-components >_______________________________________________ >Qt-components mailing list >Qt-components@qt.nokia.com >http://lists.qt.nokia.com/mailman/listinfo/qt-components _______________________________________________ Qt-components mailing list Qt-components@qt.nokia.com http://lists.qt.nokia.com/mailman/listinfo/qt-components _______________________________________________ Qt-components mailing list Qt-components@qt.nokia.com http://lists.qt.nokia.com/mailman/listinfo/qt-components