diff options
-rw-r--r-- | kio/bookmarks/kbookmarkdrag.cc | 12 | ||||
-rw-r--r-- | kio/bookmarks/kbookmarkdrag.h | 2 | ||||
-rw-r--r-- | kio/kio/paste.cpp | 6 | ||||
-rw-r--r-- | tdecore/kclipboard.cpp | 4 | ||||
-rw-r--r-- | tdecore/kmultipledrag.cpp | 6 | ||||
-rw-r--r-- | tdecore/kmultipledrag.h | 2 | ||||
-rw-r--r-- | tdecore/kurldrag.cpp | 8 | ||||
-rw-r--r-- | tdecore/kurldrag.h | 2 | ||||
-rw-r--r-- | tdeui/kcolordrag.cpp | 8 | ||||
-rw-r--r-- | tdeui/kcolordrag.h | 2 | ||||
-rw-r--r-- | tdeui/kedittoolbar.cpp | 2 |
11 files changed, 27 insertions, 27 deletions
diff --git a/kio/bookmarks/kbookmarkdrag.cc b/kio/bookmarks/kbookmarkdrag.cc index 358e329a9..d13893eed 100644 --- a/kio/bookmarks/kbookmarkdrag.cc +++ b/kio/bookmarks/kbookmarkdrag.cc @@ -54,8 +54,8 @@ KBookmarkDrag::KBookmarkDrag( const TQValueList<KBookmark> & bookmarks, const TQ : TQUriDrag( urls, dragSource, name ), m_bookmarks( bookmarks ), m_doc("xbel") { // We need to create the XML for this drag right now and not - // in tqencodedData because when cutting a folder, the children - // wouldn't be part of the bookmarks anymore, when tqencodedData + // in encodedData because when cutting a folder, the children + // wouldn't be part of the bookmarks anymore, when encodedData // is requested. TQDomElement elem = m_doc.createElement("xbel"); m_doc.appendChild( elem ); @@ -76,16 +76,16 @@ const char* KBookmarkDrag::format( int i ) const else return 0; } -TQByteArray KBookmarkDrag::tqencodedData( const char* mime ) const +TQByteArray KBookmarkDrag::encodedData( const char* mime ) const { TQByteArray a; TQCString mimetype( mime ); if ( mimetype == "text/uri-list" ) - return TQUriDrag::tqencodedData( mime ); + return TQUriDrag::encodedData( mime ); else if ( mimetype == "application/x-xbel" ) { a = m_doc.toCString(); - //kdDebug(7043) << "KBookmarkDrag::tqencodedData " << m_doc.toCString() << endl; + //kdDebug(7043) << "KBookmarkDrag::encodedData " << m_doc.toCString() << endl; } else if ( mimetype == "text/plain" ) { @@ -117,7 +117,7 @@ TQValueList<KBookmark> KBookmarkDrag::decode( const TQMimeSource * e ) TQValueList<KBookmark> bookmarks; if ( e->provides("application/x-xbel") ) { - TQByteArray s( e->tqencodedData("application/x-xbel") ); + TQByteArray s( e->encodedData("application/x-xbel") ); //kdDebug(7043) << "KBookmarkDrag::decode s=" << TQCString(s) << endl; TQDomDocument doc; doc.setContent( s ); diff --git a/kio/bookmarks/kbookmarkdrag.h b/kio/bookmarks/kbookmarkdrag.h index c67f1ea19..c213f2d93 100644 --- a/kio/bookmarks/kbookmarkdrag.h +++ b/kio/bookmarks/kbookmarkdrag.h @@ -43,7 +43,7 @@ public: virtual ~KBookmarkDrag() {} virtual const char* format( int i ) const; - virtual TQByteArray tqencodedData( const char* mime ) const; + virtual TQByteArray encodedData( const char* mime ) const; static bool canDecode( const TQMimeSource * e ); static TQValueList<KBookmark> decode( const TQMimeSource * e ); diff --git a/kio/kio/paste.cpp b/kio/kio/paste.cpp index 5a74c3e48..99714ffa7 100644 --- a/kio/kio/paste.cpp +++ b/kio/kio/paste.cpp @@ -137,7 +137,7 @@ static KIO::CopyJob* chooseAndPaste( const KURL& u, TQMimeSource* data, if ( clipboard ) { data = TQApplication::tqclipboard()->data(); } - const TQByteArray ba = data->tqencodedData( chosenFormat ); + const TQByteArray ba = data->encodedData( chosenFormat ); return pasteDataAsyncTo( new_url, ba ); } #endif @@ -147,7 +147,7 @@ KIO_EXPORT bool KIO::isClipboardEmpty() { #ifndef QT_NO_MIMECLIPBOARD TQMimeSource *data = TQApplication::tqclipboard()->data(); - if ( data->provides( "text/uri-list" ) && data->tqencodedData( "text/uri-list" ).size() > 0 ) + if ( data->provides( "text/uri-list" ) && data->encodedData( "text/uri-list" ).size() > 0 ) return false; #else // Happens with some versions of Qt Embedded... :/ @@ -194,7 +194,7 @@ KIO::CopyJob* KIO::pasteMimeSource( TQMimeSource* data, const KURL& dest_url, if ( formats.size() > 1 ) { return chooseAndPaste( dest_url, data, formats, dialogText, widget, clipboard ); } - ba = data->tqencodedData( formats.first() ); + ba = data->encodedData( formats.first() ); } if ( ba.size() == 0 ) { diff --git a/tdecore/kclipboard.cpp b/tdecore/kclipboard.cpp index 86250ea4f..b6b4fc357 100644 --- a/tdecore/kclipboard.cpp +++ b/tdecore/kclipboard.cpp @@ -56,7 +56,7 @@ public: while ( (format = src->format( i++ )) ) { byteArray = new TQByteArray(); - *byteArray = src->tqencodedData( format ).copy(); + *byteArray = src->encodedData( format ).copy(); m_data.append( byteArray ); m_formats.append( format ); } @@ -74,7 +74,7 @@ public: virtual bool provides( const char *mimeType ) const { return ( m_formats.find( mimeType ) > -1 ); } - virtual TQByteArray tqencodedData( const char *format ) const + virtual TQByteArray encodedData( const char *format ) const { int index = m_formats.find( format ); if ( index > -1 ) diff --git a/tdecore/kmultipledrag.cpp b/tdecore/kmultipledrag.cpp index 94abe689e..29d56bd85 100644 --- a/tdecore/kmultipledrag.cpp +++ b/tdecore/kmultipledrag.cpp @@ -39,9 +39,9 @@ void KMultipleDrag::addDragObject( TQDragObject *dragObject ) m_numberFormats.append( i ); // e.g. if it supports two formats, 0 and 1, store 2. } -TQByteArray KMultipleDrag::tqencodedData( const char *mime ) const +TQByteArray KMultipleDrag::encodedData( const char *mime ) const { - //kdDebug() << "KMultipleDrag::tqencodedData " << mime << endl; + //kdDebug() << "KMultipleDrag::encodedData " << mime << endl; // Iterate over the drag objects, and find the format in the right one TQPtrListIterator<TQDragObject> it( m_dragObjects ); for ( ; it.current(); ++it ) @@ -49,7 +49,7 @@ TQByteArray KMultipleDrag::tqencodedData( const char *mime ) const for ( int i = 0; it.current()->format( i ); ++i ) { if ( ::qstrcmp( it.current()->format( i ), mime ) == 0 ) - return it.current()->tqencodedData( mime ); + return it.current()->encodedData( mime ); } } return TQByteArray(); diff --git a/tdecore/kmultipledrag.h b/tdecore/kmultipledrag.h index 019a3c5e0..42baf3530 100644 --- a/tdecore/kmultipledrag.h +++ b/tdecore/kmultipledrag.h @@ -80,7 +80,7 @@ public: * @return the data, or a null byte array if not found * @reimp */ - virtual TQByteArray tqencodedData( const char *mime ) const; + virtual TQByteArray encodedData( const char *mime ) const; /** * Returns the @p i'th supported format, or 0. diff --git a/tdecore/kurldrag.cpp b/tdecore/kurldrag.cpp index 7153b8077..2b07c2580 100644 --- a/tdecore/kurldrag.cpp +++ b/tdecore/kurldrag.cpp @@ -87,7 +87,7 @@ KURLDrag * KURLDrag::newDrag( const KURL::List &urls, const TQMap<TQString, TQSt bool KURLDrag::decode( const TQMimeSource *e, KURL::List &uris ) { if ( e->provides( "application/x-kde-urilist" ) ) { - TQByteArray payload = e->tqencodedData( "application/x-kde-urilist" ); + TQByteArray payload = e->encodedData( "application/x-kde-urilist" ); if ( payload.size() ) { uint c=0; const char* d = payload.data(); @@ -128,7 +128,7 @@ bool KURLDrag::decode( const TQMimeSource *e, KURL::List &uris, TQMap<TQString,T { if ( decode( e, uris ) ) // first decode the URLs (see above) { - TQByteArray ba = e->tqencodedData( "application/x-kio-metadata" ); + TQByteArray ba = e->encodedData( "application/x-kio-metadata" ); if ( ba.size() ) { TQString s = ba.data(); @@ -187,12 +187,12 @@ const char * KURLDrag::format( int i ) const else return 0; } -TQByteArray KURLDrag::tqencodedData( const char* mime ) const +TQByteArray KURLDrag::encodedData( const char* mime ) const { TQByteArray a; TQCString mimetype( mime ); if ( mimetype == "text/uri-list" ) - return TQUriDrag::tqencodedData( mime ); + return TQUriDrag::encodedData( mime ); else if ( mimetype == "text/plain" ) { TQStringList uris; diff --git a/tdecore/kurldrag.h b/tdecore/kurldrag.h index e44557f99..aee9d83b9 100644 --- a/tdecore/kurldrag.h +++ b/tdecore/kurldrag.h @@ -145,7 +145,7 @@ public: /// @reimp virtual const char * format( int i ) const; /// @reimp - virtual TQByteArray tqencodedData( const char* mime ) const; + virtual TQByteArray encodedData( const char* mime ) const; protected: /** diff --git a/tdeui/kcolordrag.cpp b/tdeui/kcolordrag.cpp index 978130fcd..3beed82ca 100644 --- a/tdeui/kcolordrag.cpp +++ b/tdeui/kcolordrag.cpp @@ -40,7 +40,7 @@ void KColorDrag::setColor( const TQColor &color) { TQColorDrag tmp(color, 0, 0); - setEncodedData(tmp.tqencodedData(color_mime_string)); + setEncodedData(tmp.encodedData(color_mime_string)); TQPixmap colorpix( 25, 20); colorpix.fill( color); @@ -59,7 +59,7 @@ const char *KColorDrag::format(int i) const return TQStoredDrag::format(i); } -TQByteArray KColorDrag::tqencodedData ( const char * m ) const +TQByteArray KColorDrag::encodedData ( const char * m ) const { if (!qstrcmp(m, text_mime_string) ) { @@ -69,7 +69,7 @@ TQByteArray KColorDrag::tqencodedData ( const char * m ) const ((TQByteArray&)result).resize(result.length()); return result; } - return TQStoredDrag::tqencodedData(m); + return TQStoredDrag::encodedData(m); } bool @@ -91,7 +91,7 @@ KColorDrag::decode( TQMimeSource *e, TQColor &color) if (TQColorDrag::decode(e, color)) return true; - TQByteArray data = e->tqencodedData( text_mime_string); + TQByteArray data = e->encodedData( text_mime_string); TQString colorName = TQString::tqfromLatin1(data.data(), data.size()); if ((colorName.length() < 4) || (colorName[0] != '#')) return false; diff --git a/tdeui/kcolordrag.h b/tdeui/kcolordrag.h index 55f69de0a..289938b00 100644 --- a/tdeui/kcolordrag.h +++ b/tdeui/kcolordrag.h @@ -48,7 +48,7 @@ public: virtual ~KColorDrag() {} virtual const char *format(int i) const; - virtual TQByteArray tqencodedData ( const char * m ) const; + virtual TQByteArray encodedData ( const char * m ) const; /** * Sets the color of the drag to @p col. diff --git a/tdeui/kedittoolbar.cpp b/tdeui/kedittoolbar.cpp index e57a641a7..ad03a2b7d 100644 --- a/tdeui/kedittoolbar.cpp +++ b/tdeui/kedittoolbar.cpp @@ -155,7 +155,7 @@ public: if (!e) return false; - TQByteArray data = e->tqencodedData(TOOLBARITEMMIMETYPE); + TQByteArray data = e->encodedData(TOOLBARITEMMIMETYPE); if ( data.isEmpty() ) return false; |