Its a wish! I want to insert Bitmaps into the Emaileditor. Not as Attachment! Reproducible: Always
Html mode -> insert image -> bmp ?
Thanks I found it. A wish from me is: If i do with drag and drop a Picture into Emaileditor that i become a menu with a third option that do the same funktion as Html mode -> insert image -> bmp. Best Regards Martin
Ok just in html mode. Will investigate it. It's a good idea.
// If this is a PNG image, either add it as an attachment or as an inline image qDebug()<<" source->format()"<<source->formats(); if ( source->hasImage() && source->hasFormat( QLatin1String("image/png") ) ) { // Get the image data before showing the dialog, since that processes events which can delete // the QMimeData object behind our back const QByteArray imageData = source->data( QLatin1String("image/png") ); if ( imageData.isEmpty() ) { return true; } if ( !forceAttachment ) { if ( mComposerBase->editor()->textMode() == KRichTextEdit::Rich && mComposerBase->editor()->isEnableImageActions() ) { QImage image = qvariant_cast<QImage>( source->imageData() ); QFileInfo fi( source->text() ); We have a code in kmail but any program send QMimeData as png or other. They send as url. So kmail can but I don't know a program which send as image. a dnd is just a url not a data. when you make 'copy' on a image in firefox for example you can paste and menu will ask you if you want to insert image but dnd can't .