Replaced various '#define' with actual strings - part 5

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/54/head
Michele Calgaro 12 months ago
parent 079f0cc9a5
commit 8acb66d550
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -108,7 +108,7 @@ CollectionScanner::doJob() //SLOT
<< endl; << endl;
else { else {
TQTextStream logStream; TQTextStream logStream;
logStream.setDevice(TQT_TQIODEVICE(&logFile)); logStream.setDevice(&logFile);
logStream.setEncoding(TQTextStream::UnicodeUTF8); logStream.setEncoding(TQTextStream::UnicodeUTF8);
lastFile = logStream.read(); lastFile = logStream.read();
logFile.close(); logFile.close();
@ -120,7 +120,7 @@ CollectionScanner::doJob() //SLOT
<< " read-only" << endl; << " read-only" << endl;
else { else {
TQTextStream folderStream; TQTextStream folderStream;
folderStream.setDevice(TQT_TQIODEVICE(&folderFile)); folderStream.setDevice(&folderFile);
folderStream.setEncoding(TQTextStream::UnicodeUTF8); folderStream.setEncoding(TQTextStream::UnicodeUTF8);
entries = TQStringList::split( "\n", folderStream.read() ); entries = TQStringList::split( "\n", folderStream.read() );
} }

@ -2995,7 +2995,7 @@ TQString CurrentTrackJob::statsHTML( int score, int rating, bool statsbox ) //st
fullStarIO.setFormat( "PNG" ); fullStarIO.setFormat( "PNG" );
TQBuffer fullStarBuf; TQBuffer fullStarBuf;
fullStarBuf.open( IO_WriteOnly ); fullStarBuf.open( IO_WriteOnly );
fullStarIO.setIODevice( TQT_TQIODEVICE(&fullStarBuf) ); fullStarIO.setIODevice( &fullStarBuf );
fullStarIO.write(); fullStarIO.write();
fullStarBuf.close(); fullStarBuf.close();
TQCString fullStar = KCodecs::base64Encode( fullStarBuf.buffer(), true ); TQCString fullStar = KCodecs::base64Encode( fullStarBuf.buffer(), true );
@ -3010,7 +3010,7 @@ TQString CurrentTrackJob::statsHTML( int score, int rating, bool statsbox ) //st
halfStarIO.setFormat( "PNG" ); halfStarIO.setFormat( "PNG" );
TQBuffer halfStarBuf; TQBuffer halfStarBuf;
halfStarBuf.open( IO_WriteOnly ); halfStarBuf.open( IO_WriteOnly );
halfStarIO.setIODevice( TQT_TQIODEVICE(&halfStarBuf) ); halfStarIO.setIODevice( &halfStarBuf );
halfStarIO.write(); halfStarIO.write();
halfStarBuf.close(); halfStarBuf.close();
TQCString halfStar = KCodecs::base64Encode( halfStarBuf.buffer(), true ); TQCString halfStar = KCodecs::base64Encode( halfStarBuf.buffer(), true );

@ -817,7 +817,7 @@ DaapDownloader::doJob()
KTempFile* tempNewFile = new KTempFile( TQString(), '.' + TQFileInfo( (*urlIt).path() ).extension() ); KTempFile* tempNewFile = new KTempFile( TQString(), '.' + TQFileInfo( (*urlIt).path() ).extension() );
tempNewFile->setAutoDelete( true ); tempNewFile->setAutoDelete( true );
m_tempFileList.append( tempNewFile ); m_tempFileList.append( tempNewFile );
http->getDaap( (*urlIt).path() + (*urlIt).query(), TQT_TQIODEVICE(tempNewFile->file()) ); http->getDaap( (*urlIt).path() + (*urlIt).query(), tempNewFile->file() );
while( !m_ready && !isAborted() ) while( !m_ready && !isAborted() )
{ {
msleep( 100 ); //Sleep 100 msec msleep( 100 ); //Sleep 100 msec

@ -47,7 +47,7 @@ TQDataStream&
ContentFetcher::results() ContentFetcher::results()
{ {
TQBuffer* bytes = new TQBuffer( readAll() ); TQBuffer* bytes = new TQBuffer( readAll() );
TQIODevice* stream = KFilterDev::device( TQT_TQIODEVICE(bytes), "application/x-gzip", false ); TQIODevice* stream = KFilterDev::device( bytes, "application/x-gzip", false );
stream->open( IO_ReadOnly ); stream->open( IO_ReadOnly );
TQDataStream* ds = new TQDataStream( stream ); TQDataStream* ds = new TQDataStream( stream );
return *ds; return *ds;

Loading…
Cancel
Save