[prev in list] [next in list] [prev in thread] [next in thread]
List: kmail-devel
Subject: Re: Looking for the email drag and drop fix posted 1-2 weeks ago
From: Adriaan de Groot <adridg () sci ! kun ! nl>
Date: 2001-01-29 5:21:58
[Download RAW message or body]
On Sunday 28 January 2001 12:17, Richard Bos wrote:
> a week or maybe 2 weeks ago I posted a bug about incorrect dragging of an
> email address to kmail. There was a very quick reply with a proposal how
I might add that abbrowser/browserwidget.cpp contains
PabListView::contentsDropEvent() which solves the same problem:
void PabListView::contentsDropEvent( QDropEvent *e )
{
QStrList strings;
if ( QUriDrag::decode( e, strings ) ) {
QString m("Full URLs:\n");
for (const char* u=strings.first(); u; u=strings.next())
if (u && (KURL::decode_string(u).find( "mailto:" ) == 0)) {
pabWidget->addEmail( KURL::decode_string(u).mid(7) );
return;
}
}
}
which could be useful since the code i originally posted doesn't handle URI
lists at all, just single addresses such as generated when you drag an
address from a mail view into the composer.
--
[ade] at home: adridg@sci.kun.nl
Probably hacking at KDE2.
_______________________________________________
Kmail Developers mailing list
Kmail@master.kde.org
http://master.kde.org/mailman/listinfo/kmail
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic