summaryrefslogtreecommitdiffstats
path: root/ark/sevenzip.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/sevenzip.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/sevenzip.cpp')
-rw-r--r--ark/sevenzip.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/ark/sevenzip.cpp b/ark/sevenzip.cpp
index 99170ac..2292214 100644
--- a/ark/sevenzip.cpp
+++ b/ark/sevenzip.cpp
@@ -110,7 +110,7 @@ void SevenZipArch::open()
if ( !kp->start( KProcess::NotifyOnExit, KProcess::AllOutput ) )
{
KMessageBox::error( 0, i18n( "Could not start a subprocess." ) );
- emit sigOpen( this, false, TQString::null, 0 );
+ emit sigOpen( this, false, TQString(), 0 );
}
}
@@ -283,13 +283,13 @@ bool SevenZipArch::processLine( const TQCString& _line )
: columns[ m_fixYear ];
TQString month = ( m_repairMonth >= 0 ) ?
TQString( "%1" )
- .arg( ArkUtils::getMonth( columns[ m_repairMonth ].ascii() ) )
+ .tqarg( ArkUtils::getMonth( columns[ m_repairMonth ].ascii() ) )
: columns[ m_fixMonth ];
- TQString timestamp = TQString::fromLatin1( "%1-%2-%3 %4" )
- .arg( year )
- .arg( month )
- .arg( columns[ m_fixDay ] )
- .arg( columns[ m_fixTime ] );
+ TQString timestamp = TQString::tqfromLatin1( "%1-%2-%3 %4" )
+ .tqarg( year )
+ .tqarg( month )
+ .tqarg( columns[ m_fixDay ] )
+ .tqarg( columns[ m_fixTime ] );
columns[ m_dateCol ] = timestamp;
}
@@ -330,11 +330,11 @@ void SevenZipArch::slotReceivedTOC( KProcess*, char* data, int length )
startChar = lfChar + 1;
// Check if the header was found
- if ( m_buffer.find( m_headerString ) != -1 )
+ if ( m_buffer.tqfind( m_headerString.data() ) != -1 )
{
if ( !m_header_removed )
{
- m_nameColumnPos = m_buffer.findRev( ' ' ) + 1;
+ m_nameColumnPos = m_buffer.tqfindRev( ' ' ) + 1;
m_header_removed = true;
}
else