diff options
Diffstat (limited to 'krename/fileoperation.cpp')
-rw-r--r-- | krename/fileoperation.cpp | 30 |
1 files changed, 9 insertions, 21 deletions
diff --git a/krename/fileoperation.cpp b/krename/fileoperation.cpp index 23fa405..cfc558b 100644 --- a/krename/fileoperation.cpp +++ b/krename/fileoperation.cpp @@ -22,13 +22,9 @@ #include <kio/job.h> // QT includes -#if QT_VERSION >= 0x030100 - #include <qeventloop.h> -#else - #include <qapplication.h> -#endif +#include <tqeventloop.h> -#include <qfileinfo.h> +#include <tqfileinfo.h> // OS includes #include <stdio.h> @@ -54,7 +50,7 @@ bool FileOperation::start( const KURL & src, const KURL & dest, int mode, bool o result = 0; if( src == dest && !overwrite ) { - m_error = QString( i18n( "File %1 exists already!") ).arg( dest.prettyURL() ); + m_error = TQString( i18n( "File %1 exists already!") ).tqarg( dest.prettyURL() ); return false; } @@ -76,7 +72,7 @@ bool FileOperation::start( const KURL & src, const KURL & dest, int mode, bool o } else { - m_error = i18n("Can't create symlinks on different hosts for file %1.").arg( src.prettyURL() ); + m_error = i18n("Can't create symlinks on different hosts for file %1.").tqarg( src.prettyURL() ); result = true; return !result; } @@ -87,25 +83,21 @@ bool FileOperation::start( const KURL & src, const KURL & dest, int mode, bool o return false; job->setAutoErrorHandlingEnabled( false, 0 ); - connect( job, SIGNAL( result (KIO::Job *) ), - this, SLOT( slotResult (KIO::Job *) ) ); + connect( job, TQT_SIGNAL( result (KIO::Job *) ), + this, TQT_SLOT( slotResult (KIO::Job *) ) ); -#if QT_VERSION >= 0x030100 kapp->eventLoop()->enterLoop(); -#else - kapp->enter_loop(); -#endif return !result; } -bool FileOperation::fcopy( const QString & src, const QString & dest ) +bool FileOperation::fcopy( const TQString & src, const TQString & dest ) { return start( KURL( src ), KURL( dest ), KIO::CopyJob::Copy, false ); } -QString FileOperation::getName( const QString & file ) +TQString FileOperation::getName( const TQString & file ) { - QFileInfo info( file ); + TQFileInfo info( file ); return info.fileName(); } @@ -115,10 +107,6 @@ void FileOperation::slotResult( KIO::Job * job ) if( result ) m_error = job->errorString(); -#if QT_VERSION >= 0x030100 kapp->eventLoop()->exitLoop(); -#else - kapp->exit_loop(); -#endif } |