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 )