[PATCH] Re: Help, Ok, Cancel KStandardGuiItems

David Jarvie djarvie at kde.org
Sat Aug 30 14:34:32 BST 2008


Le Fri 29 August 2008 23:20:02 Allen Winter, vous avez écrit :
> On Friday 29 August 2008 16:25:30 Allen Winter wrote:
> > Howdy,
> >
> > I noticed that the Help ,Ok and Cancel buttons in KDialogs
> > don't have tooltips or whatsthis. (Help has a tooltip, but no whatsthis).
> >
> > This is due to those settings missing in KStandardGuiItems::ok(), et.al.
> >
> > Is there a good reason for this?  Should I add the tooltips/whatthis
> > to the KStandardGuiItems? Or not? Or maybe add them into
> > the KDialog class directly?
>
> Attached is a patch for review that makes sure Help, Ok and Cancel
> have tooltips and whatsthis.  Let me know if I can commit.
> Or if you have better text.

OK and Cancel buttons are not only used in the context of applying changes. As 
an example of kdelibs use which doesn't conform to this, Cancel is used in 
the continue/cancel variant of KMessageBox, where it means "don't proceed 
with the operation which I kicked off". There will also be many uses in 
applications in all sorts of circumstances. So it's hard to envisage a 
generally applicable tooltip or whatsthis which expands to anything more than 
the actual button text ("Cancel" or "OK") - not a particularly useful thing 
to do. Better to leave the tooltips and whatsthis texts unset.

-- 
David Jarvie.
KAlarm author and maintainer.
http://www.astrojar.org.uk/kalarm




More information about the kde-core-devel mailing list