summaryrefslogtreecommitdiffstats
path: root/parts/valgrind/valgrind_part.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parts/valgrind/valgrind_part.cpp')
-rw-r--r--parts/valgrind/valgrind_part.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/parts/valgrind/valgrind_part.cpp b/parts/valgrind/valgrind_part.cpp
index 801d1c2a..064129cf 100644
--- a/parts/valgrind/valgrind_part.cpp
+++ b/parts/valgrind/valgrind_part.cpp
@@ -26,8 +26,8 @@ typedef KDevGenericFactory<ValgrindPart> ValgrindFactory;
static const KDevPluginInfo data("kdevvalgrind");
K_EXPORT_COMPONENT_FACTORY( libkdevvalgrind, ValgrindFactory( data ) )
-ValgrindPart::ValgrindPart( TQObject *parent, const char *name, const TQStringList& )
- : KDevPlugin( &data, parent, name ? name : "ValgrindPart" )
+ValgrindPart::ValgrindPart( TQObject *tqparent, const char *name, const TQStringList& )
+ : KDevPlugin( &data, tqparent, name ? name : "ValgrindPart" )
{
setInstance( ValgrindFactory::instance() );
setXMLFile( "kdevpart_valgrind.rc" );
@@ -87,13 +87,13 @@ void ValgrindPart::projectOpened()
void ValgrindPart::loadOutput()
{
- TQString fName = KFileDialog::getOpenFileName(TQString::null, "*", 0, i18n("Open Valgrind Output"));
+ TQString fName = KFileDialog::getOpenFileName(TQString(), "*", 0, i18n("Open Valgrind Output"));
if ( fName.isEmpty() )
return;
TQFile f( fName );
if ( !f.open( IO_ReadOnly ) ) {
- KMessageBox::sorry( 0, i18n("Could not open valgrind output: %1").arg(fName) );
+ KMessageBox::sorry( 0, i18n("Could not open valgrind output: %1").tqarg(fName) );
return;
}
@@ -206,9 +206,9 @@ void ValgrindPart::slotStopButtonClicked( KDevPlugin* which )
void ValgrindPart::clear()
{
m_widget->clear();
- currentMessage = TQString::null;
+ currentMessage = TQString();
currentPid = -1;
- lastPiece = TQString::null;
+ lastPiece = TQString();
}
void ValgrindPart::runValgrind( const TQString& exec, const TQString& params, const TQString& valExec, const TQString& valParams )
@@ -234,7 +234,7 @@ void ValgrindPart::runValgrind( const TQString& exec, const TQString& params, co
DomUtil::PairList::ConstIterator it;
for (it = run_envvars.begin(); it != run_envvars.end(); ++it)
{
- envVarList << TQString("%1=\"%2\" ").arg((*it).first).arg((*it).second);
+ envVarList << TQString("%1=\"%2\" ").tqarg((*it).first).tqarg((*it).second);
}
*proc << envVarList.join("") << valExec << valParams << exec << params;
@@ -269,7 +269,7 @@ void ValgrindPart::receivedString( const TQString& str )
lastPiece = lines.back();
lines.pop_back();
} else {
- lastPiece = TQString::null;
+ lastPiece = TQString();
}
appendMessages( lines );
}
@@ -286,7 +286,7 @@ void ValgrindPart::appendMessages( const TQStringList& lines )
if ( valRe.cap( 2 ).isEmpty() ) {
appendMessage( currentMessage );
- currentMessage = TQString::null;
+ currentMessage = TQString();
} else if ( cPid != currentPid ) {
appendMessage( currentMessage );
currentMessage = *it;
@@ -303,8 +303,8 @@ void ValgrindPart::processExited( KProcess* p )
{
if ( p == proc ) {
appendMessage( currentMessage + lastPiece );
- currentMessage = TQString::null;
- lastPiece = TQString::null;
+ currentMessage = TQString();
+ lastPiece = TQString();
core()->running( this, false );
if (kcInfo.runKc)
@@ -312,7 +312,7 @@ void ValgrindPart::processExited( KProcess* p )
KProcess *kcProc = new KProcess;
// kcProc->setWorkingDirectory(kcInfo.kcWorkDir);
*kcProc << kcInfo.kcPath;
- *kcProc << TQString("callgrind.out.%1").arg(p->pid());
+ *kcProc << TQString("callgrind.out.%1").tqarg(p->pid());
kcProc->start(KProcess::DontCare);
}
}