diff options
Diffstat (limited to 'languages/ruby/debugger/rdboutputwidget.cpp')
-rw-r--r-- | languages/ruby/debugger/rdboutputwidget.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/languages/ruby/debugger/rdboutputwidget.cpp b/languages/ruby/debugger/rdboutputwidget.cpp index 5e08e116..6eef01c7 100644 --- a/languages/ruby/debugger/rdboutputwidget.cpp +++ b/languages/ruby/debugger/rdboutputwidget.cpp @@ -29,11 +29,11 @@ #include <kiconloader.h> #include <klocale.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qtextedit.h> -#include <qtoolbutton.h> -#include <qtooltip.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqtextedit.h> +#include <tqtoolbutton.h> +#include <tqtooltip.h> /***************************************************************************/ /***************************************************************************/ @@ -44,45 +44,45 @@ namespace RDBDebugger /***************************************************************************/ -RDBOutputWidget::RDBOutputWidget( QWidget *parent, const char *name) : - QWidget(parent, name), +RDBOutputWidget::RDBOutputWidget( TQWidget *parent, const char *name) : + TQWidget(parent, name), m_userRDBCmdEditor(0), m_Interrupt(0), m_rdbView(0) { - m_rdbView = new QTextEdit (this, name); + m_rdbView = new TQTextEdit (this, name); m_rdbView->setReadOnly(true); - QBoxLayout *userRDBCmdEntry = new QHBoxLayout(); + TQBoxLayout *userRDBCmdEntry = new TQHBoxLayout(); m_userRDBCmdEditor = new KHistoryCombo (this, "rdb-user-cmd-editor"); - QLabel *label = new QLabel(i18n("&RDB cmd:"), this); + TQLabel *label = new TQLabel(i18n("&RDB cmd:"), this); label->setBuddy(m_userRDBCmdEditor); userRDBCmdEntry->addWidget(label); userRDBCmdEntry->addWidget(m_userRDBCmdEditor); userRDBCmdEntry->setStretchFactor(m_userRDBCmdEditor, 1); - m_Interrupt = new QToolButton( this, "add breakpoint" ); - m_Interrupt->setSizePolicy ( QSizePolicy ( (QSizePolicy::SizeType)0, - ( QSizePolicy::SizeType)0, + m_Interrupt = new TQToolButton( this, "add breakpoint" ); + m_Interrupt->setSizePolicy ( TQSizePolicy ( (TQSizePolicy::SizeType)0, + ( TQSizePolicy::SizeType)0, 0, 0, m_Interrupt->sizePolicy().hasHeightForWidth()) ); m_Interrupt->setPixmap ( SmallIcon ( "player_pause" ) ); userRDBCmdEntry->addWidget(m_Interrupt); - QToolTip::add ( m_Interrupt, i18n ( "Pause execution of the app to enter rdb commands" ) ); + TQToolTip::add ( m_Interrupt, i18n ( "Pause execution of the app to enter rdb commands" ) ); - QVBoxLayout *topLayout = new QVBoxLayout(this, 2); + TQVBoxLayout *topLayout = new TQVBoxLayout(this, 2); topLayout->addWidget(m_rdbView, 10); topLayout->addLayout(userRDBCmdEntry); slotDbgStatus( "", s_dbgNotStarted); - connect( m_userRDBCmdEditor, SIGNAL(returnPressed()), SLOT(slotRDBCmd()) ); - connect( m_Interrupt, SIGNAL(clicked()), SIGNAL(breakInto())); + connect( m_userRDBCmdEditor, TQT_SIGNAL(returnPressed()), TQT_SLOT(slotRDBCmd()) ); + connect( m_Interrupt, TQT_SIGNAL(clicked()), TQT_SIGNAL(breakInto())); } /***************************************************************************/ @@ -106,7 +106,7 @@ void RDBOutputWidget::clear() void RDBOutputWidget::slotReceivedStdout(const char* line) { if (strncmp(line, "(rdb:", 5) == 0) - m_rdbView->append(QString("<font color=\"blue\">").append( line ).append("</font>") ); + m_rdbView->append(TQString("<font color=\"blue\">").append( line ).append("</font>") ); else m_rdbView->append(line); } @@ -115,14 +115,14 @@ void RDBOutputWidget::slotReceivedStdout(const char* line) void RDBOutputWidget::slotReceivedStderr(const char* line) { - m_rdbView->append(QString("<font color=\"red\">").append( line ).append("</font>") ); + m_rdbView->append(TQString("<font color=\"red\">").append( line ).append("</font>") ); } /***************************************************************************/ void RDBOutputWidget::slotRDBCmd() { - QString RDBCmd(m_userRDBCmdEditor->currentText()); + TQString RDBCmd(m_userRDBCmdEditor->currentText()); if (!RDBCmd.isEmpty()) { m_userRDBCmdEditor->addToHistory(RDBCmd); @@ -133,7 +133,7 @@ void RDBOutputWidget::slotRDBCmd() /***************************************************************************/ -void RDBOutputWidget::slotDbgStatus(const QString &, int statusFlag) +void RDBOutputWidget::slotDbgStatus(const TQString &, int statusFlag) { if (statusFlag & s_dbgNotStarted) { @@ -156,7 +156,7 @@ void RDBOutputWidget::slotDbgStatus(const QString &, int statusFlag) /***************************************************************************/ -void RDBOutputWidget::focusInEvent(QFocusEvent */*e*/) +void RDBOutputWidget::focusInEvent(TQFocusEvent */*e*/) { m_userRDBCmdEditor->setFocus(); } |