From kde-pim Thu Dec 20 22:34:55 2007 From: David Faure Date: Thu, 20 Dec 2007 22:34:55 +0000 To: kde-pim Subject: Re: [Kde-pim] KMail: "smart paste" of email addresses Message-Id: <200712202334.55708.dfaure () kdab ! net> X-MARC-Message: https://marc.info/?l=kde-pim&m=119819017425079 On Thursday 20 December 2007, Thomas McGuire wrote: > 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). Not implemented yet. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17920 "add __attribute__((reimpl)) as a replacement for the (optional) virtual keyword for reimplementations of virtual functions" see also http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2108.html -- David Faure, faure@kde.org, dfaure@klaralvdalens-datakonsult.se KDE/KOffice developer, Qt consultancy projects Klarälvdalens Datakonsult AB, Platform-independent software solutions _______________________________________________ KDE PIM mailing list kde-pim@kde.org https://mail.kde.org/mailman/listinfo/kde-pim KDE PIM home page at http://pim.kde.org/