[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: KLineEdit/QLineEdit problem with reimplemented methods
From:       Allen Winter <winter () kde ! org>
Date:       2007-12-20 3:03:11
Message-ID: 200712192203.11485.winter () kde ! org
[Download RAW message or body]

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 )
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic