summaryrefslogtreecommitdiffstats
path: root/languages/cpp/debugger/dbgpsdlg.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-14 16:45:05 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-14 16:45:05 +0000
commit48d4a26399959121f33d2bc3bfe51c7827b654fc (patch)
tree5ae5e6e00d3ba330b7b8be9bc097154b6bc739e8 /languages/cpp/debugger/dbgpsdlg.cpp
parent7e701ace6592d09e1f2c0cf28c7d6d872d78f4f5 (diff)
downloadtdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.tar.gz
tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.zip
TQt4 port kdevelop
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1236710 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'languages/cpp/debugger/dbgpsdlg.cpp')
-rw-r--r--languages/cpp/debugger/dbgpsdlg.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/languages/cpp/debugger/dbgpsdlg.cpp b/languages/cpp/debugger/dbgpsdlg.cpp
index e96d7395..e08a1cec 100644
--- a/languages/cpp/debugger/dbgpsdlg.cpp
+++ b/languages/cpp/debugger/dbgpsdlg.cpp
@@ -50,8 +50,8 @@ namespace GDBDebugger
// For use with the internal debugger, but this dialog doesn't know anything
// about why it's doing it.
-Dbg_PS_Dialog::Dbg_PS_Dialog(TQWidget *parent, const char *name)
- : KDialog(parent, name, true), // modal
+Dbg_PS_Dialog::Dbg_PS_Dialog(TQWidget *tqparent, const char *name)
+ : KDialog(tqparent, name, true), // modal
psProc_(0),
pids_(new KListView(this)),
pidLines_(TQString())
@@ -77,7 +77,7 @@ Dbg_PS_Dialog::Dbg_PS_Dialog(TQWidget *parent, const char *name)
buttonbox->addStretch();
TQPushButton *ok = buttonbox->addButton(KStdGuiItem::ok());
TQPushButton *cancel = buttonbox->addButton(KStdGuiItem::cancel());
- buttonbox->layout();
+ buttonbox->tqlayout();
topLayout->addWidget(buttonbox);
connect(ok, TQT_SIGNAL(clicked()), TQT_SLOT(accept()));
@@ -155,14 +155,14 @@ void Dbg_PS_Dialog::slotProcessExited()
pidLines_ += '\n';
- int start = pidLines_.find('\n', 0); // Skip the first line (header line)
+ int start = pidLines_.tqfind('\n', 0); // Skip the first line (header line)
int pos;
static TQRegExp ps_output_line("^\\s*(\\S+)\\s+(\\S+)\\s+(\\S+)\\s+(\\S+)\\s+(.+)");
- while ( (pos = pidLines_.find('\n', start)) != -1) {
+ while ( (pos = pidLines_.tqfind('\n', start)) != -1) {
TQString item = pidLines_.mid(start, pos-start);
- if (!item.isEmpty() && item.find(pidCmd_) == -1)
+ if (!item.isEmpty() && item.tqfind(pidCmd_) == -1)
{
if(ps_output_line.search(item) == -1)
{
@@ -172,7 +172,7 @@ void Dbg_PS_Dialog::slotProcessExited()
// to 'arg'.
i18n("<b>Could not parse output from the <tt>ps</tt> command.</b>"
"<p>The following line could not be parsed:"
- "<b><tt>%1</tt>").arg(item),
+ "<b><tt>%1</tt>").tqarg(item),
i18n("Internal error"), "gdb_error" );
break;
}