diff options
Diffstat (limited to 'languages/cpp/debugger/dbgpsdlg.cpp')
| -rw-r--r-- | languages/cpp/debugger/dbgpsdlg.cpp | 46 | 
1 files changed, 23 insertions, 23 deletions
| diff --git a/languages/cpp/debugger/dbgpsdlg.cpp b/languages/cpp/debugger/dbgpsdlg.cpp index 524e4539..e96d7395 100644 --- a/languages/cpp/debugger/dbgpsdlg.cpp +++ b/languages/cpp/debugger/dbgpsdlg.cpp @@ -26,15 +26,15 @@  #include <klistviewsearchline.h>  #include <kmessagebox.h> -#include <qframe.h> -#include <qlabel.h> -#include <qlayout.h> +#include <tqframe.h> +#include <tqlabel.h> +#include <tqlayout.h> -#include <qtoolbutton.h> -#include <qpushbutton.h> -#include <qregexp.h> -#include <qheader.h> -#include <qtimer.h> +#include <tqtoolbutton.h> +#include <tqpushbutton.h> +#include <tqregexp.h> +#include <tqheader.h> +#include <tqtimer.h>  #include <unistd.h>  #include <sys/types.h> @@ -50,11 +50,11 @@ 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(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 KListView(this)), -      pidLines_(QString()) +      pidLines_(TQString())  {      setCaption(i18n("Attach to Process")); @@ -65,7 +65,7 @@ Dbg_PS_Dialog::Dbg_PS_Dialog(QWidget *parent, const char *name)      pids_->addColumn("COMMAND"); -    QBoxLayout *topLayout = new QVBoxLayout(this, 5); +    TQBoxLayout *topLayout = new TQVBoxLayout(this, 5);      searchLineWidget_ = new KListViewSearchLineWidget(pids_, this);      topLayout->addWidget(searchLineWidget_); @@ -75,19 +75,19 @@ Dbg_PS_Dialog::Dbg_PS_Dialog(QWidget *parent, const char *name)      KButtonBox *buttonbox = new KButtonBox(this, Qt::Horizontal);      buttonbox->addStretch(); -    QPushButton *ok       = buttonbox->addButton(KStdGuiItem::ok()); -    QPushButton *cancel   = buttonbox->addButton(KStdGuiItem::cancel()); +    TQPushButton *ok       = buttonbox->addButton(KStdGuiItem::ok()); +    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()));        // Default display to 40 chars wide, default height is okay      resize( ((KGlobalSettings::fixedFont()).pointSize())*40, height());      topLayout->activate(); -    QTimer::singleShot(0, this, SLOT(slotInit())); +    TQTimer::singleShot(0, this, TQT_SLOT(slotInit()));  } @@ -133,8 +133,8 @@ void Dbg_PS_Dialog::slotInit()      }  #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);  } @@ -143,7 +143,7 @@ void Dbg_PS_Dialog::slotInit()  void Dbg_PS_Dialog::slotReceivedOutput(KProcess */*proc*/, char *buffer, int buflen)  { -    pidLines_ += QString::fromLocal8Bit(buffer, buflen); +    pidLines_ += TQString::fromLocal8Bit(buffer, buflen);  }  /***************************************************************************/ @@ -158,10 +158,10 @@ void Dbg_PS_Dialog::slotProcessExited()      int start = pidLines_.find('\n', 0);  // Skip the first line (header line)      int pos; -    static QRegExp ps_output_line("^\\s*(\\S+)\\s+(\\S+)\\s+(\\S+)\\s+(\\S+)\\s+(.+)"); +    static TQRegExp ps_output_line("^\\s*(\\S+)\\s+(\\S+)\\s+(\\S+)\\s+(\\S+)\\s+(.+)");      while ( (pos = pidLines_.find('\n', start)) != -1) {         -        QString item = pidLines_.mid(start, pos-start); +        TQString item = pidLines_.mid(start, pos-start);          if (!item.isEmpty() && item.find(pidCmd_) == -1)          {              if(ps_output_line.search(item) == -1) @@ -177,7 +177,7 @@ void Dbg_PS_Dialog::slotProcessExited()                  break;              } -            new QListViewItem(pids_,  +            new TQListViewItem(pids_,                                 ps_output_line.cap(1),                                ps_output_line.cap(2),                                ps_output_line.cap(3), @@ -192,7 +192,7 @@ void Dbg_PS_Dialog::slotProcessExited()      searchLineWidget_->searchLine()->setFocus();  } -void Dbg_PS_Dialog::focusIn(QFocusEvent*) +void Dbg_PS_Dialog::focusIn(TQFocusEvent*)  {      searchLineWidget_->searchLine()->setFocus();  } | 
