summaryrefslogtreecommitdiffstats
path: root/ark/tar.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-23 01:42:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-23 01:42:07 +0000
commita2277b6bc715464e83882b90c2a058139b8a6b54 (patch)
treeab09b14014f59b4d8e2ddd12226aa0b22e4dfc5d /ark/tar.cpp
parentd3f79e04b34bd1f70a458b81b28fc8799498c8dc (diff)
downloadtdeutils-a2277b6bc715464e83882b90c2a058139b8a6b54.tar.gz
tdeutils-a2277b6bc715464e83882b90c2a058139b8a6b54.zip
TQt4 port kdeutils
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1238125 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ark/tar.cpp')
-rw-r--r--ark/tar.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/ark/tar.cpp b/ark/tar.cpp
index 7de54f9..4bc6c0a 100644
--- a/ark/tar.cpp
+++ b/ark/tar.cpp
@@ -48,7 +48,7 @@
#include <stdio.h>
#include <stdlib.h>
-// Qt includes
+// TQt includes
#include <tqdir.h>
#include <tqregexp.h>
#include <tqeventloop.h>
@@ -106,12 +106,12 @@ TarArch::TarArch( ArkWidget *_gui,
{
compressed = true;
m_tmpDir = new KTempDir( _gui->tmpDir()
- + TQString::fromLatin1( "temp_tar" ) );
+ + TQString::tqfromLatin1( "temp_tar" ) );
m_tmpDir->setAutoDelete( true );
m_tmpDir->qDir()->cd( m_tmpDir->name() );
// build the temp file name
KTempFile *pTempFile = new KTempFile( m_tmpDir->name(),
- TQString::fromLatin1(".tar") );
+ TQString::tqfromLatin1(".tar") );
tmpfile = pTempFile->name();
delete pTempFile;
@@ -217,7 +217,7 @@ TQString TarArch::getCompressor()
if( m_fileMimeType == "application/x-tzo" )
return TQString( "lzop" );
- return TQString::null;
+ return TQString();
}
@@ -241,7 +241,7 @@ TQString TarArch::getUnCompressor()
if( m_fileMimeType == "application/x-tzo" )
return TQString( "lzop" );
- return TQString::null;
+ return TQString();
}
void
@@ -322,14 +322,14 @@ void TarArch::slotListingDone(KProcess *_kp)
if (flv!=NULL && flv->totalFiles()>0)
{
const TQString firstfile = ((FileLVI *) flv->firstChild())->fileName();
- if (list.find(TQRegExp(TQString("\\s\\./%1[/\\n]").arg(firstfile)))>=0)
+ if (list.tqfind(TQRegExp(TQString("\\s\\./%1[/\\n]").tqarg(firstfile)))>=0)
{
m_dotslash = true;
kdDebug(1601) << k_funcinfo << "archive has dot-slash" << endl;
}
else
{
- if (list.find(TQRegExp(TQString("\\s%1[/\\n]").arg(firstfile)))>=0)
+ if (list.tqfind(TQRegExp(TQString("\\s%1[/\\n]").tqarg(firstfile)))>=0)
{
// archive doesn't have dot-slash
m_dotslash = false;
@@ -418,7 +418,7 @@ void TarArch::createTmp()
if (kp->start(KProcess::NotifyOnExit, flag ) == false)
{
KMessageBox::error(0, i18n("Unable to fork a decompressor"));
- emit sigOpen( this, false, TQString::null, 0 );
+ emit sigOpen( this, false, TQString(), 0 );
}
}
else
@@ -772,7 +772,7 @@ void TarArch::customEvent( TQCustomEvent *ev )
m_listingThread->wait();
delete m_listingThread;
m_listingThread = 0;
- emit sigOpen( this, false, TQString::null, 0 );
+ emit sigOpen( this, false, TQString(), 0 );
break;
case ListingEvent::ListingFinished: