From 2c9bc9b806f533df7b8f5349467d0f4be95314a4 Mon Sep 17 00:00:00 2001 From: gregory guy Date: Sat, 13 Jun 2020 16:09:24 +0200 Subject: Conversion qt3 -> tqt3 Signed-off-by: gregory guy --- src/app/playlistFile.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/app/playlistFile.cpp') diff --git a/src/app/playlistFile.cpp b/src/app/playlistFile.cpp index 19acd30..323643d 100644 --- a/src/app/playlistFile.cpp +++ b/src/app/playlistFile.cpp @@ -9,8 +9,8 @@ #include "debug.h" #include #include "playlistFile.h" -#include -#include +#include +#include #include @@ -21,7 +21,7 @@ PlaylistFile::PlaylistFile( const KURL &url ) { mxcl::WaitCursor allocateOnStack; - QString &path = m_path = url.path(); + TQString &path = m_path = url.path(); if( path.endsWith( ".pls", false ) ) m_type = PLS; else @@ -34,16 +34,16 @@ PlaylistFile::PlaylistFile( const KURL &url ) } if( m_isRemoteFile ) { - path = QString(); + path = TQString(); if( !KIO::NetAccess::download( url, path, Codeine::mainWindow() ) ) { m_error = i18n( "Codeine could not download the remote playlist: %1" ).arg( url.prettyURL() ); return; } } - QFile file( path ); + TQFile file( path ); if( file.open( IO_ReadOnly ) ) { - QTextStream stream( &file ); + TQTextStream stream( &file ); switch( m_type ) { case M3U: parseM3uFile( stream ); break; case PLS: parsePlsFile( stream ); break; @@ -67,15 +67,15 @@ PlaylistFile::~PlaylistFile() void -PlaylistFile::parsePlsFile( QTextStream &stream ) +PlaylistFile::parsePlsFile( TQTextStream &stream ) { DEBUG_BLOCK - for( QString line = stream.readLine(); !line.isNull(); ) + for( TQString line = stream.readLine(); !line.isNull(); ) { if( line.startsWith( "File" ) ) { const KURL url = line.section( '=', -1 ); - const QString title = stream.readLine().section( '=', -1 ); + const TQString title = stream.readLine().section( '=', -1 ); debug() << url << endl << title << endl; @@ -90,11 +90,11 @@ PlaylistFile::parsePlsFile( QTextStream &stream ) void -PlaylistFile::parseM3uFile( QTextStream &stream ) +PlaylistFile::parseM3uFile( TQTextStream &stream ) { DEBUG_BLOCK - for( QString line; !stream.atEnd(); ) + for( TQString line; !stream.atEnd(); ) { line = stream.readLine(); -- cgit v1.2.1