summaryrefslogtreecommitdiffstats
path: root/parts/valgrind
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:51:21 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:51:21 -0600
commitb6ba5d642f3fc7d320e3d6f4650eb259a3a52b04 (patch)
tree76f49820693d443128d3720322ff1605e9bcd558 /parts/valgrind
parent247f828db1b8dcdc9346c1568d81cfa00db99c9e (diff)
downloadtdevelop-b6ba5d642f3fc7d320e3d6f4650eb259a3a52b04.tar.gz
tdevelop-b6ba5d642f3fc7d320e3d6f4650eb259a3a52b04.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'parts/valgrind')
-rw-r--r--parts/valgrind/dialog_widget.ui16
-rw-r--r--parts/valgrind/valgrind_dialog.cpp20
-rw-r--r--parts/valgrind/valgrind_part.cpp6
-rw-r--r--parts/valgrind/valgrind_widget.cpp2
4 files changed, 22 insertions, 22 deletions
diff --git a/parts/valgrind/dialog_widget.ui b/parts/valgrind/dialog_widget.ui
index 727215ba..5da3365d 100644
--- a/parts/valgrind/dialog_widget.ui
+++ b/parts/valgrind/dialog_widget.ui
@@ -103,7 +103,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout2</cstring>
+ <cstring>layout2</cstring>
</property>
<hbox>
<property name="name">
@@ -122,7 +122,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -141,15 +141,15 @@
</widget>
<widget class="TQCheckBox">
<property name="name">
- <cstring>tqchildrenBox</cstring>
+ <cstring>childrenBox</cstring>
</property>
<property name="text">
- <string>&amp;Trace tqchildren</string>
+ <string>&amp;Trace children</string>
</property>
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout3</cstring>
+ <cstring>layout3</cstring>
</property>
<grid>
<property name="name">
@@ -223,7 +223,7 @@
</property>
<widget class="TQLayoutWidget" row="1" column="0">
<property name="name">
- <cstring>tqlayout3_2</cstring>
+ <cstring>layout3_2</cstring>
</property>
<grid>
<property name="name">
@@ -271,7 +271,7 @@
<cstring>ctChildrenBox</cstring>
</property>
<property name="text">
- <string>&amp;Trace tqchildren</string>
+ <string>&amp;Trace children</string>
</property>
</widget>
</grid>
@@ -323,7 +323,7 @@
<tabstop>paramEdit</tabstop>
<tabstop>memleakBox</tabstop>
<tabstop>reachableBox</tabstop>
- <tabstop>tqchildrenBox</tabstop>
+ <tabstop>childrenBox</tabstop>
<tabstop>valExecutableEdit</tabstop>
<tabstop>valParamEdit</tabstop>
<tabstop>ctChildrenBox</tabstop>
diff --git a/parts/valgrind/valgrind_dialog.cpp b/parts/valgrind/valgrind_dialog.cpp
index cfca7074..fe440449 100644
--- a/parts/valgrind/valgrind_dialog.cpp
+++ b/parts/valgrind/valgrind_dialog.cpp
@@ -1,4 +1,4 @@
-#include <tqlayout.h>
+#include <layout.h>
#include <tqcheckbox.h>
#include <tqregexp.h>
#include <tqwidgetstack.h>
@@ -89,7 +89,7 @@ void ValgrindDialog::setValExecutable( const TQString& ve )
static const TQString memCheckParam( "--tool=memcheck" );
static const TQString leakCheckParam( "--leak-check=yes" );
static const TQString reachableParam( "--show-reachable=yes" );
-static const TQString tqchildrenParam( "--trace-tqchildren=yes" );
+static const TQString childrenParam( "--trace-children=yes" );
TQString ValgrindDialog::valParams() const
{
@@ -100,8 +100,8 @@ TQString ValgrindDialog::valParams() const
params += " " + leakCheckParam;
if ( w->reachableBox->isChecked() )
params += " " + reachableParam;
- if ( w->tqchildrenBox->isChecked() )
- params += " " + tqchildrenParam;
+ if ( w->childrenBox->isChecked() )
+ params += " " + childrenParam;
return params;
}
@@ -113,14 +113,14 @@ void ValgrindDialog::setValParams( const TQString& params )
w->memleakBox->setChecked( true );
if ( myParams.contains( reachableParam ) )
w->reachableBox->setChecked( true );
- if ( myParams.contains( tqchildrenParam ) )
- w->tqchildrenBox->setChecked( true );
+ if ( myParams.contains( childrenParam ) )
+ w->childrenBox->setChecked( true );
w->init();
myParams = myParams.replace( TQRegExp( memCheckParam ), "" );
myParams = myParams.replace( TQRegExp( leakCheckParam ), "" );
myParams = myParams.replace( TQRegExp( reachableParam ), "" );
- myParams = myParams.replace( TQRegExp( tqchildrenParam ), "" );
+ myParams = myParams.replace( TQRegExp( childrenParam ), "" );
myParams = myParams.stripWhiteSpace();
w->valParamEdit->setText( myParams );
}
@@ -150,7 +150,7 @@ TQString ValgrindDialog::ctParams() const
{
TQString params = w->ctParamEdit->text();
if ( w->ctChildrenBox->isChecked() )
- params += " " + tqchildrenParam;
+ params += " " + childrenParam;
return params;
}
@@ -161,11 +161,11 @@ void ValgrindDialog::setCtParams( const TQString& params )
//force --tool=callgrind if no params are given
if (myParams.isEmpty())
myParams = "--tool=callgrind";
- if ( myParams.contains( tqchildrenParam ) )
+ if ( myParams.contains( childrenParam ) )
w->ctChildrenBox->setChecked( true );
w->init();
- myParams = myParams.replace( TQRegExp( tqchildrenParam ), "" );
+ myParams = myParams.replace( TQRegExp( childrenParam ), "" );
myParams = myParams.stripWhiteSpace();
w->ctParamEdit->setText( myParams );
}
diff --git a/parts/valgrind/valgrind_part.cpp b/parts/valgrind/valgrind_part.cpp
index abf10a6d..bd0df1ef 100644
--- a/parts/valgrind/valgrind_part.cpp
+++ b/parts/valgrind/valgrind_part.cpp
@@ -93,7 +93,7 @@ void ValgrindPart::loadOutput()
TQFile f( fName );
if ( !f.open( IO_ReadOnly ) ) {
- KMessageBox::sorry( 0, i18n("Could not open valgrind output: %1").tqarg(fName) );
+ KMessageBox::sorry( 0, i18n("Could not open valgrind output: %1").arg(fName) );
return;
}
@@ -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\" ").tqarg((*it).first).tqarg((*it).second);
+ envVarList << TQString("%1=\"%2\" ").arg((*it).first).arg((*it).second);
}
*proc << envVarList.join("") << valExec << valParams << exec << params;
@@ -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").tqarg(p->pid());
+ *kcProc << TQString("callgrind.out.%1").arg(p->pid());
kcProc->start(KProcess::DontCare);
}
}
diff --git a/parts/valgrind/valgrind_widget.cpp b/parts/valgrind/valgrind_widget.cpp
index 074a2c38..d9980d7c 100644
--- a/parts/valgrind/valgrind_widget.cpp
+++ b/parts/valgrind/valgrind_widget.cpp
@@ -1,4 +1,4 @@
-#include <tqlayout.h>
+#include <layout.h>
#include <tqpainter.h>
#include <tqpopupmenu.h>