From d8cc8bdfa7fa624a526d5aa1626974e1444cb799 Mon Sep 17 00:00:00 2001 From: tpearson Date: Fri, 27 May 2011 19:21:21 +0000 Subject: TQt4 port k3b This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k3b@1233803 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/k3bdebuggingoutputfile.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'src/k3bdebuggingoutputfile.cpp') diff --git a/src/k3bdebuggingoutputfile.cpp b/src/k3bdebuggingoutputfile.cpp index 2f99e96..f1ce1dc 100644 --- a/src/k3bdebuggingoutputfile.cpp +++ b/src/k3bdebuggingoutputfile.cpp @@ -26,48 +26,48 @@ #include #include -#include +#include K3bDebuggingOutputFile::K3bDebuggingOutputFile() - : QFile( locateLocal( "appdata", "lastlog.log", true ) ) + : TQFile( locateLocal( "appdata", "lastlog.log", true ) ) { } bool K3bDebuggingOutputFile::open() { - if( !QFile::open( IO_WriteOnly ) ) + if( !TQFile::open( IO_WriteOnly ) ) return false; addOutput( "System", "K3b Version: " + k3bcore->version() ); - addOutput( "System", "KDE Version: " + QString(KDE::versionString()) ); - addOutput( "System", "QT Version: " + QString(qVersion()) ); + addOutput( "System", "KDE Version: " + TQString(KDE::versionString()) ); + addOutput( "System", "QT Version: " + TQString(qVersion()) ); addOutput( "System", "Kernel: " + K3b::kernelVersion() ); // devices in the logfile - for( QPtrListIterator it( k3bcore->deviceManager()->allDevices() ); *it; ++it ) { + for( TQPtrListIterator it( k3bcore->deviceManager()->allDevices() ); *it; ++it ) { K3bDevice::Device* dev = *it; addOutput( "Devices", - QString( "%1 (%2, %3) [%5] [%6] [%7]" ) - .arg( dev->vendor() + " " + dev->description() + " " + dev->version() ) - .arg( dev->blockDeviceName() ) - .arg( dev->genericDevice() ) - .arg( K3bDevice::deviceTypeString( dev->type() ) ) - .arg( K3bDevice::mediaTypeString( dev->supportedProfiles() ) ) - .arg( K3bDevice::writingModeString( dev->writingModes() ) ) ); + TQString( "%1 (%2, %3) [%5] [%6] [%7]" ) + .tqarg( dev->vendor() + " " + dev->description() + " " + dev->version() ) + .tqarg( dev->blockDeviceName() ) + .tqarg( dev->genericDevice() ) + .tqarg( K3bDevice::deviceTypeString( dev->type() ) ) + .tqarg( K3bDevice::mediaTypeString( dev->supportedProfiles() ) ) + .tqarg( K3bDevice::writingModeString( dev->writingModes() ) ) ); } return true; } -void K3bDebuggingOutputFile::addOutput( const QString& app, const QString& msg ) +void K3bDebuggingOutputFile::addOutput( const TQString& app, const TQString& msg ) { if( !isOpen() ) open(); - QTextStream s( this ); + TQTextStream s( this ); s << "[" << app << "] " << msg << endl; flush(); } -- cgit v1.2.3