[Patch] clearButtonClicked signal for KLineEdit

David Faure faure at kde.org
Sat Apr 28 18:32:13 BST 2007


On Saturday 28 April 2007, Mathias Soeken wrote:
> Aaron J. Seigo wrote:
> 
> > On Thursday 26 April 2007, Mathias Soeken wrote:
> >> Hi,
> >>
> >> I added a signal which is emitted when the user clicked on the clear
> >> button in a KLineEdit widget.
> >>
> >> I could use it for the kmail application, where it is a difference
> >> whether the text is cleared or the user clicks on the button.
> > 
> > the patch looks good technically; i had considered providing such a signal
> > but was waiting for a use case to pop up first. what is the use case in
> > kmail?
> > 
> 
> In the composer window, you can enter recipients line by line. When clicking
> on the clear button the whole line is removed from all the recipient lines.
> Now there is a clear button as push button. But when clearing the text in
> the lineedit widget, the recipient line should not be removed.

Isn't this a case where the clear button should stay out of the lineedit, given the
special meaning it has? (Delete the whole line and make it disappear, rather than just clearing it)

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kde-core-devel mailing list