From kde-core-devel Thu Dec 20 03:03:11 2007 From: Allen Winter Date: Thu, 20 Dec 2007 03:03:11 +0000 To: kde-core-devel Subject: Re: KLineEdit/QLineEdit problem with reimplemented methods Message-Id: <200712192203.11485.winter () kde ! org> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=119811984425122 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 )