| Summary: | New Function: Bitmaps in Editor as visible Picture | ||
|---|---|---|---|
| Product: | [Applications] kmail2 | Reporter: | Martin Brugger <martin.brugger> |
| Component: | composer | Assignee: | kdepim bugs <pim-bugs-null> |
| Status: | REPORTED --- | ||
| Severity: | wishlist | CC: | montel |
| Priority: | NOR | ||
| Version First Reported In: | 4.11.2 | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Martin Brugger
2013-12-14 22:30:18 UTC
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 .
|