[PATCH] Permanent clear button for KLineEdit

Aaron J. Seigo aseigo at kde.org
Wed Mar 25 18:07:11 GMT 2009


On Wednesday 25 March 2009, Thomas L├╝bking wrote:
> why not just make the appereance dependent on "mouseOver"?

interesting note on implementing hover interfaces: mouse over interfaces often 
require the use of qtimers to make completely sure you don't somehow lose a 
hover out event which happens way too often with Qt (my fave way to reproduce 
is to go into an item, open a context menu, then fellow the context menu out 
of the item, then dismiss the context menu with the keyboard; this often 
exposes these kinds of bugs).

so while i love hover interfaces, they can be brittle. just as a side note for 
those who may go do such things so they can avoid the same annoyances i've 
been through perhaps. ;)

> this will lead to even less clutter than hiding it for empty lines, users
> are used to ui (look) changes on hover and you cannot click it w/o hovering
> the editline anyway...

one issue that may be a bit concerning with this and line edits is that they 
are often very wiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiide. and the user is 
like to mouse over the part with the text. and the clear button will be waaaay 
the other side. hitting the clear button in such a situation can be a little 
frustrating as you point, move, click. 

but it might work just perfectly, too :) someone should give it a try...

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Software

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20090325/b2f4dc3e/attachment.sig>


More information about the kde-core-devel mailing list