summaryrefslogtreecommitdiffstats
path: root/languages/ruby/debugger/dbgpsdlg.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /languages/ruby/debugger/dbgpsdlg.cpp
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz
tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'languages/ruby/debugger/dbgpsdlg.cpp')
-rw-r--r--languages/ruby/debugger/dbgpsdlg.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/languages/ruby/debugger/dbgpsdlg.cpp b/languages/ruby/debugger/dbgpsdlg.cpp
index 83dd1666..d5458c28 100644
--- a/languages/ruby/debugger/dbgpsdlg.cpp
+++ b/languages/ruby/debugger/dbgpsdlg.cpp
@@ -29,12 +29,12 @@
#include <kstdguiitem.h>
#include <kdeversion.h>
-#include <qframe.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qlistbox.h>
-#include <qtoolbutton.h>
-#include <qpushbutton.h>
+#include <tqframe.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqlistbox.h>
+#include <tqtoolbutton.h>
+#include <tqpushbutton.h>
#include <stdlib.h>
#include <unistd.h>
@@ -51,19 +51,19 @@ namespace RDBDebugger
// 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(QWidget *parent, const char *name)
+Dbg_PS_Dialog::Dbg_PS_Dialog(TQWidget *parent, const char *name)
: KDialog(parent, name, true), // modal
psProc_(0),
- pids_(new QListBox(this)),
- heading_(new QLabel(" ", this)),
- pidLines_(QString())
+ pids_(new TQListBox(this)),
+ heading_(new TQLabel(" ", this)),
+ pidLines_(TQString())
{
setCaption(i18n("Attach to Process"));
- QBoxLayout *topLayout = new QVBoxLayout(this, 5);
+ TQBoxLayout *topLayout = new TQVBoxLayout(this, 5);
heading_->setFont(KGlobalSettings::fixedFont());
- heading_->setFrameStyle(QFrame::Panel|QFrame::Sunken);
+ heading_->setFrameStyle(TQFrame::Panel|TQFrame::Sunken);
heading_->setMaximumHeight(heading_->sizeHint().height());
// heading_->setMinimumSize(heading_->sizeHint());
topLayout->addWidget(heading_, 5);
@@ -72,14 +72,14 @@ Dbg_PS_Dialog::Dbg_PS_Dialog(QWidget *parent, const char *name)
pids_->setFont(KGlobalSettings::fixedFont());
KButtonBox *buttonbox = new KButtonBox(this, Qt::Horizontal, 5);
- QPushButton *ok = buttonbox->addButton(KStdGuiItem::ok());
+ TQPushButton *ok = buttonbox->addButton(KStdGuiItem::ok());
buttonbox->addStretch();
- QPushButton *cancel = buttonbox->addButton(KStdGuiItem::cancel());
+ TQPushButton *cancel = buttonbox->addButton(KStdGuiItem::cancel());
buttonbox->layout();
topLayout->addWidget(buttonbox);
- connect(ok, SIGNAL(clicked()), SLOT(accept()));
- connect(cancel, SIGNAL(clicked()), SLOT(reject()));
+ connect(ok, TQT_SIGNAL(clicked()), TQT_SLOT(accept()));
+ connect(cancel, TQT_SIGNAL(clicked()), TQT_SLOT(reject()));
psProc_ = new KShellProcess("/bin/sh");
#ifdef USE_SOLARIS
@@ -106,8 +106,8 @@ Dbg_PS_Dialog::Dbg_PS_Dialog(QWidget *parent, const char *name)
}
#endif
- connect( psProc_, SIGNAL(processExited(KProcess *)), SLOT(slotProcessExited()) );
- connect( psProc_, SIGNAL(receivedStdout(KProcess *, char *, int)), SLOT(slotReceivedOutput(KProcess *, char *, int)) );
+ connect( psProc_, TQT_SIGNAL(processExited(KProcess *)), TQT_SLOT(slotProcessExited()) );
+ connect( psProc_, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)), TQT_SLOT(slotReceivedOutput(KProcess *, char *, int)) );
psProc_->start(KProcess::NotifyOnExit, KProcess::Stdout);
// Default display to 40 chars wide, default height is okay
@@ -126,7 +126,7 @@ Dbg_PS_Dialog::~Dbg_PS_Dialog()
int Dbg_PS_Dialog::pidSelected()
{
- QString pidText = pids_->text(pids_->currentItem());
+ TQString pidText = pids_->text(pids_->currentItem());
if (!pidText.isEmpty())
return atoi(pidText.latin1());
@@ -137,7 +137,7 @@ int Dbg_PS_Dialog::pidSelected()
void Dbg_PS_Dialog::slotReceivedOutput(KProcess */*proc*/, char *buffer, int buflen)
{
- pidLines_ += QString::fromLocal8Bit(buffer, buflen+1);
+ pidLines_ += TQString::fromLocal8Bit(buffer, buflen+1);
}
/***************************************************************************/
@@ -154,7 +154,7 @@ void Dbg_PS_Dialog::slotProcessExited()
if (start != -1)
heading_->setText(pidLines_.left(start));
while ( (pos = pidLines_.find('\n', start)) != -1) {
- QString item = pidLines_.mid(start, pos-start);
+ TQString item = pidLines_.mid(start, pos-start);
if (!item.isEmpty()) {
if (item.find(pidCmd_) == -1)
pids_->insertItem(item);