[Kde-pim] KMail: "smart paste" of email addresses

Thomas McGuire thomas.mcguire at gmx.net
Thu Dec 20 21:33:47 GMT 2007


Hi,

On Tuesday 18 December 2007, Kevin Krammer wrote:
> On Monday 17 December 2007, Ingo Klöcker wrote:
> > On Sunday 16 December 2007, Kevin Krammer wrote:
> > > Since the AddresseeLineEdit in libkdepim used this (i.e.
> > > reimplementing KLineEdit::paste(), KLineEdit::insert()) to implement
> > > the so called "smart paste" feature, it no longer works.
> > >
> > > [..]
> > >
> > > Any preferences which way I should investigate further, or maybe any
> > > other option I am overlooking?
> >
> > It's always possible to reimplement the *Event() methods, i.e.
> > keyPressEvent(), and the mouse events. Just make sure that you handle
> > all shortcuts of KStandardAction::paste().
>
> Right, but the text still has to be intercepted somewhere and the
> contextmenu paste would also have to be handled.
>
> Kind of weird that the widget setters are no longer virtual.
I unfortunately can't contribute an answer, because I also don't know a proper 
way to fix this.

What concerns me is that there are suddenly methods in Qt that are no longer 
virtual; I guess these kind of errors can be found in other places, too.
Anybody knows if there is a compiler warning for this? It should warn if 
non-virtual methods are overridden in a subclass. This would be very helpful 
(like the overload-virtual warnings).

Regards,
Thomas


_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list