SVN commit 474540 by wgreven: Port from KMultipleDrag to QMimeData. M +4 -9 khtml_ext.cpp --- trunk/KDE/kdelibs/khtml/khtml_ext.cpp #474539:474540 @@ -39,7 +39,6 @@ #include #include #include -#include #include #include @@ -57,7 +56,6 @@ #include #include #include -#include #include #include #include "khtml_factory.h" @@ -233,16 +231,13 @@ */ //if(!cb->selectionModeEnabled()) htmltext = m_part->selectedTextAsHTML(); - Q3TextDrag *textdrag = new Q3TextDrag(text, 0L); - KMultipleDrag *drag = new KMultipleDrag( m_editableFormWidget ); - drag->addDragObject( textdrag ); + QMimeData *mimeData = new QMimeData; + mimeData->setText(text); if(!htmltext.isEmpty()) { htmltext.replace( QChar( 0xa0 ), ' ' ); - Q3TextDrag *htmltextdrag = new Q3TextDrag(htmltext, 0L); - htmltextdrag->setSubtype("html"); - drag->addDragObject( htmltextdrag ); + mimeData->setHtml(htmltext); } - cb->setData(drag); + cb->setMimeData(mimeData); #else cb->setText(text); #endif