KLineEdit/QLineEdit problem with reimplemented methods

Allen Winter winter at kde.org
Thu Dec 20 03:03:11 GMT 2007


On Sunday 09 December 2007 16:53:43 Kevin Krammer wrote:
> Hi all,
> 
> I am currently debugging a problem in KMail where pasting "obfusicated" mail 
> addresses, e.g. "kevin dot krammer at gmx dot at" are no longer converted 
> into their clear form.
> 
> AddresseeLineEdit from kdepim/libkdepim/ basically does this (or has done 
> this) by parsing the text in AddresseeLineEdit::insert()
> 
> Infortunately this method, and other such as setText, seem to be no longer be 
> virtual, thus the paste calls Qt's implementation only.
> 
> Any idea how this could be ported to Qt4?
> 
> There is probably a reason why all those setters are no longer virtuals.
> 
Kevin,

Maybe you can write a QValidator with an appropriate fixup method??

then QLineEdit::setValidator ( const QValidator * v )




More information about the kde-core-devel mailing list