KMultiActionButton

Michel Hermier michel.hermier at gmail.com
Tue Dec 5 23:10:31 GMT 2006


Aaron J. Seigo wrote:
> On Tuesday 05 December 2006 15:22, Michaƫl Larouche wrote:
>   
>> Can you give a use case of your new widget ? Why would I want to group
>> actions in toolbar so close to each other ?
>>     
>
> ah, right, sorry i forgot you can't see inside my head ;)
>
> both vista and macos have these things and the purpose is to create greater 
> visual grouping in toolbars between related options. e.g in safari  
> forward/backwards are one "button"; in the new MS office the alignment 
> options (center/left/right/justified) are one "button", etc ...
>
> http://www.nawaat.org/portail/IMG/jpg/nawaat-safari-macosX.jpg
> http://aarakast.de/wp-content/uploads/microsoft-office-2007.jpg
>
> as i understand it the idea is twofold:
>
>  - more compact / less cluttered toolbars
>  - reflect semantic relationships between actions better
>
> it would be nice if qtoolbar itself respected groups in this way, but it 
> doesn't. this seems to be a decent way to work around that.
>
>   
Why not calling it KActionGroupButton instead ? Since QActionGroup exist 
and is from what I understand looks a lot to the group behavior exposed 
by these kind of button, that souds a better name. Maybe we should also 
have a KActionGroup, to use this new kind of "button" ?

my 2 cents




More information about the kde-core-devel mailing list