summaryrefslogtreecommitdiffstats
path: root/tdecore
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-06 00:38:29 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-06 00:38:29 -0600
commitca1f1a08ecb01139487ff2f0591f97b97164c4e4 (patch)
tree3d890700d69458192fddd1829688a8a4e10a0c65 /tdecore
parentd4e11a5f488204ab8886e167c7c4af1e6e16ab58 (diff)
downloadtdelibs-ca1f1a08ecb01139487ff2f0591f97b97164c4e4.tar.gz
tdelibs-ca1f1a08ecb01139487ff2f0591f97b97164c4e4.zip
Rename tqencodedData to fix bindings
Diffstat (limited to 'tdecore')
-rw-r--r--tdecore/kclipboard.cpp4
-rw-r--r--tdecore/kmultipledrag.cpp6
-rw-r--r--tdecore/kmultipledrag.h2
-rw-r--r--tdecore/kurldrag.cpp8
-rw-r--r--tdecore/kurldrag.h2
5 files changed, 11 insertions, 11 deletions
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:
/**