[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-usability
Subject:    Re: [KDE Usability] Misuse of toggle buttons, continued
From:       Aurélien_Gâteau <agateau () kde ! org>
Date:       2010-08-19 8:39:50
Message-ID: 4C6CEDD6.5030404 () kde ! org
[Download RAW message or body]

On 19/08/2010 03:40, Matt Rogers wrote:

>> Right now developers misuse KToggleAction to create actions which change
>> labels and icons on click. I think there is a need for an action class
>> which can switch between two sets of labels and icons without being
>> checkable.
>>
>> Example of uses are combined Play/Pause action in media players,
>> Reload/Stop in web browsers or the Split/Close button in Dolphin (which
>> does not abuse KToggleAction but probably implements something very
>> similar to what my class does).
>>
>> Aurélien
>>
> 
> Why can't we educate developers on how to properly use KToggleAction
> and/or fix KToggleAction to implement the proper behavior?

I originally thought about going this way, but realize it was not the
right way: KToggleAction represents a *checkable* action, so it will
always stay down when clicked. There is no way, as far as I can tell, to
fix KToggleAction so that one can set an alternative KGuiItem for its
checked state without making it checkable.

Aurélien
_______________________________________________
kde-usability mailing list
kde-usability@kde.org
https://mail.kde.org/mailman/listinfo/kde-usability

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic