From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kode/kwsdl/schema/fileprovider.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'kode/kwsdl/schema/fileprovider.cpp') diff --git a/kode/kwsdl/schema/fileprovider.cpp b/kode/kwsdl/schema/fileprovider.cpp index 642592bf4..2a7448c4f 100644 --- a/kode/kwsdl/schema/fileprovider.cpp +++ b/kode/kwsdl/schema/fileprovider.cpp @@ -21,9 +21,9 @@ #include -#include -#include -#include +#include +#include +#include #include #include @@ -33,11 +33,11 @@ using namespace Schema; FileProvider::FileProvider() - : QObject( 0 ), mBlocked( false ) + : TQObject( 0 ), mBlocked( false ) { } -bool FileProvider::get( const QString &url, QString &target ) +bool FileProvider::get( const TQString &url, TQString &target ) { if ( !mFileName.isEmpty() ) cleanUp(); @@ -53,14 +53,14 @@ bool FileProvider::get( const QString &url, QString &target ) qDebug( "Downloading external schema '%s'", url.latin1() ); KIO::TransferJob* job = KIO::get( KURL( url ), false, false ); - connect( job, SIGNAL( data( KIO::Job*, const QByteArray& ) ), - this, SLOT( slotData( KIO::Job*, const QByteArray& ) ) ); - connect( job, SIGNAL( result( KIO::Job* ) ), - this, SLOT( slotResult( KIO::Job* ) ) ); + connect( job, TQT_SIGNAL( data( KIO::Job*, const TQByteArray& ) ), + this, TQT_SLOT( slotData( KIO::Job*, const TQByteArray& ) ) ); + connect( job, TQT_SIGNAL( result( KIO::Job* ) ), + this, TQT_SLOT( slotResult( KIO::Job* ) ) ); mBlocked = true; while ( mBlocked ) { - qApp->eventLoop()->processEvents( QEventLoop::ExcludeUserInput ); + qApp->eventLoop()->processEvents( TQEventLoop::ExcludeUserInput ); usleep( 500 ); } @@ -69,11 +69,11 @@ bool FileProvider::get( const QString &url, QString &target ) void FileProvider::cleanUp() { - ::unlink( QFile::encodeName( mFileName ) ); - mFileName = QString(); + ::unlink( TQFile::encodeName( mFileName ) ); + mFileName = TQString(); } -void FileProvider::slotData( KIO::Job*, const QByteArray &data ) +void FileProvider::slotData( KIO::Job*, const TQByteArray &data ) { unsigned int oldSize = mData.size(); mData.resize( oldSize + data.size() ); @@ -87,7 +87,7 @@ void FileProvider::slotResult( KIO::Job *job ) return; } - QFile file( mFileName ); + TQFile file( mFileName ); if ( !file.open( IO_WriteOnly ) ) { qDebug( "Unable to create temporary file" ); return; -- cgit v1.2.1