[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-pim
Subject: Re: [Kde-pim] KMail: "smart paste" of email addresses
From: Ingo =?iso-8859-15?q?Kl=F6cker?= <kloecker () kde ! org>
Date: 2007-12-17 20:18:24
Message-ID: 200712172118.24423 () erwin ! ingo-kloecker ! de
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Sunday 16 December 2007, Kevin Krammer wrote:
> Hi all,
>
> since a respective generic question on k-c-d got no reply for about a
> week now, I take it that it is no longer possible to intercept text
> going into a QLineEdit or its subclasses.
>
> 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.
>
> From my somewhat limited investigation the only reasonable way to
> implement this now is to use a QValidator on the line edit and let it
> "fixup" the string.
> However, since intercepting paste() doesn't work any longer either,
> it could only be turned on/off on middle-mouse-button pastes, it will
> probably have to work continuously, i.e. not just when inserting text
> through pasting.
>
> Another option, though not totally equivalent in behavior, might be
> to implement this in the completion handler. Not totally equivalent
> because pasting doesn't seem to trigger completion by itself, but
> this might depend on the completion mode setting.
>
> 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().
Regards,
Ingo
["signature.asc" (application/pgp-signature)]
_______________________________________________
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/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic