[PATCH] Permanent clear button for KLineEdit

Thomas Lübking thomas.luebking at web.de
Wed Mar 25 19:22:19 GMT 2009


Am Wednesday 25 March 2009 schrieb Aaron J. Seigo:

> 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).
afaik that's a problem with UI elements that grab the mouse (popups, dnd, 
pushed buttons...)
the hover state isn't properly updated (by X?)
the only way i know to handle this, is to implement an extra eventhandler 
which polls the mouse pos. every few ms... :-(

> 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.
i assume this is mostly a learning problem. after a few trials, you'll 
instinctively move the mouse to the right end when you just want to clear the 
line (and in addition, the button could be kept visible for focussed lines 
anyway)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20090325/f046ad13/attachment.htm>


More information about the kde-core-devel mailing list