|
|
|
@ -47,7 +47,7 @@ class DragCommand : public NewItemCommand {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DocumentItemDrag::DocumentItemDrag( TQWidget* dragSource, const char* name )
|
|
|
|
|
: TQStoredDrag( DocumentItemDrag::mimeType(), dragSource, name )
|
|
|
|
|
: TQStoredDrag( DocumentItemDrag::mimeType().latin1(), dragSource, name )
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -83,12 +83,12 @@ void DocumentItemDrag::setDocumentItem( DocumentItemList* list )
|
|
|
|
|
|
|
|
|
|
bool DocumentItemDrag::canDecode( TQMimeSource* e )
|
|
|
|
|
{
|
|
|
|
|
return e->provides( DocumentItemDrag::mimeType() );
|
|
|
|
|
return e->provides( DocumentItemDrag::mimeType().latin1() );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool DocumentItemDrag::decode( TQMimeSource* mime, MyCanvasView* cv, TokenProvider* token, KCommandHistory* history )
|
|
|
|
|
{
|
|
|
|
|
TQByteArray data = mime->encodedData( DocumentItemDrag::mimeType() );
|
|
|
|
|
TQByteArray data = mime->encodedData( DocumentItemDrag::mimeType().latin1() );
|
|
|
|
|
TQDomDocument doc( "KBarcodeClipboard" );
|
|
|
|
|
if( !doc.setContent( data ) )
|
|
|
|
|
return false;
|
|
|
|
|