|
|
@ -54,7 +54,7 @@ const char* KRDrag::format( int i ) const
|
|
|
|
if ( i == 0 )
|
|
|
|
if ( i == 0 )
|
|
|
|
return "text/uri-list";
|
|
|
|
return "text/uri-list";
|
|
|
|
else if ( i == 1 )
|
|
|
|
else if ( i == 1 )
|
|
|
|
return "application/x-kde-cutselection";
|
|
|
|
return "application/x-tde-cutselection";
|
|
|
|
else if ( i == 2 )
|
|
|
|
else if ( i == 2 )
|
|
|
|
return "text/plain";
|
|
|
|
return "text/plain";
|
|
|
|
else return 0;
|
|
|
|
else return 0;
|
|
|
@ -66,7 +66,7 @@ TQByteArray KRDrag::encodedData( const char* mime ) const
|
|
|
|
TQCString mimetype( mime );
|
|
|
|
TQCString mimetype( mime );
|
|
|
|
if ( mimetype == "text/uri-list" )
|
|
|
|
if ( mimetype == "text/uri-list" )
|
|
|
|
return TQUriDrag::encodedData( mime );
|
|
|
|
return TQUriDrag::encodedData( mime );
|
|
|
|
else if ( mimetype == "application/x-kde-cutselection" ) {
|
|
|
|
else if ( mimetype == "application/x-tde-cutselection" ) {
|
|
|
|
TQCString s ( m_bCutSelection ? "1" : "0" );
|
|
|
|
TQCString s ( m_bCutSelection ? "1" : "0" );
|
|
|
|
a.resize( s.length() + 1 ); // trailing zero
|
|
|
|
a.resize( s.length() + 1 ); // trailing zero
|
|
|
|
memcpy( a.data(), s.data(), s.length() + 1 );
|
|
|
|
memcpy( a.data(), s.data(), s.length() + 1 );
|
|
|
@ -91,7 +91,7 @@ TQByteArray KRDrag::encodedData( const char* mime ) const
|
|
|
|
|
|
|
|
|
|
|
|
bool KRDrag::decodeIsCutSelection( const TQMimeSource *e )
|
|
|
|
bool KRDrag::decodeIsCutSelection( const TQMimeSource *e )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TQByteArray a = e->encodedData( "application/x-kde-cutselection" );
|
|
|
|
TQByteArray a = e->encodedData( "application/x-tde-cutselection" );
|
|
|
|
if ( a.isEmpty() )
|
|
|
|
if ( a.isEmpty() )
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
else
|
|
|
|
else
|
|
|
|