A while ago i added little clear buttons inside of single-line text edits (QLineEdit/KLineEdit) in kdelibs. I liked it because it gets rid of those fugly and usability-wise pretty bad external clear buttons that only operate on another (poorly associated, visually) widget. I'd seen similar things elsewhere and liked the idea. so in it went.
But not before i could make it so that the text didn't go underneath the embedded clear button. That meant styling the line edit when there was a clear button showing with a stylesheet. This is where Girish entered the picture, for he was working on Qt widget styling using CSS stylesheets. You can find a bunch of examples of just how powerful this is on his Qt dev blog.
Well, eventually he decided to do a Qt-only version of what I did and he was good enough to even provide screenshots, unlike lazy me with this blog entry. But Girish just had to one up me: " The clear button appears only when the line edit has text," he said in his blog entry.
It was discovered that a bug in the stylesheet support screwed up the "no text beneath the button" trick when the line edit was embedded in a drop down or other widget. I figured pointing this out to Girish would be good revenge. ;) By the time I got to show it to him in person at the Oslo offices (I did email him about it previously, though) he had already fixed it. Doh! Stupid productive, responsive Trolls!
Like two swordsmen dueling for the honor of the fair maiden, the ball was once again in my court. (I love how that sentence makes no sense whatsoever.) Well, take this Girish:
The KDE version of the clear-button-in-the-lineedit (otherwise known as the "Seigo Special") now not only shows only when there is text, but it fades gracefully in and out using the full power of the QTimeLine battle-station and Arthur's coolio painting support which made it stupidly trivial. I also dropped using a full on QLabel or QToolButton and whipped up a tiny little QWidget that Does The Deed With Fewer Resources(tm).
For now, I stand atop this ridiculous pixel pushing perfection process mountain and look down upon you in the valleys below, Girish! How will you answer the challenge?
p.s. Girish, like virtually all the Trolls is wicked cool (that's an official Boston term), with the possible exception of Andreas-of-QGV. For you see, Andreas is wicked cool with a cherry on top, but then everyone knows that already. ;)