i really do like the solution seen in safari's location bar, where the clear button is inside the edit. it looks cleaner, it tightly associates the clear button with the edit it's associated with, it doesn't muck with layouts (see the composer in kmail for an example). so i wanted to do something similar for kde.
problem? well, i tend to be a pixel stickler. and something that really annoyed me was that while putting an icon or button in the lineedit is simple, the text would flow underneath the button as you typed. several people didn't even notice it until i pointed it out, but there you have it: i'm a bit anal about these things.
it simply was not doable in qt since there wasn't enough flexibility in qlineedit without resorting to really fugly hacks (like including and using private api from qlineedit). well, qt's new css styled widgets to the rescue! now i can just do:
buttonWidthis the width of the clear button and voila ... no more text under the button. this gives us:
this css styling stuff in qt 4.2 is really useful and rather powerful. these are the kinds of things i have been looking forward to being able to do with qt4 that just weren't in the cards for kde as long as we used qt3.
side note: i'm not a fan of that "x in a black arrow/block" icon, but it's what we have in svn right now. hopefully oxygen will give us something a bit more elegant.
these kinds of changes are really sweet in my opinion, but our apps are already pretty good. i mentioned kmail earlier; well, so did an old high school friend via instant messenger today:
oooooooh yeah. ;)