diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-14 16:45:05 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-14 16:45:05 +0000 |
commit | 48d4a26399959121f33d2bc3bfe51c7827b654fc (patch) | |
tree | 5ae5e6e00d3ba330b7b8be9bc097154b6bc739e8 /languages/cpp/debugger/gdboutputwidget.cpp | |
parent | 7e701ace6592d09e1f2c0cf28c7d6d872d78f4f5 (diff) | |
download | tdevelop-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/gdboutputwidget.cpp')
-rw-r--r-- | languages/cpp/debugger/gdboutputwidget.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/languages/cpp/debugger/gdboutputwidget.cpp b/languages/cpp/debugger/gdboutputwidget.cpp index 836886bb..7877a92c 100644 --- a/languages/cpp/debugger/gdboutputwidget.cpp +++ b/languages/cpp/debugger/gdboutputwidget.cpp @@ -39,8 +39,8 @@ namespace GDBDebugger /***************************************************************************/ -GDBOutputWidget::GDBOutputWidget( TQWidget *parent, const char *name) : - TQWidget(parent, name), +GDBOutputWidget::GDBOutputWidget( TQWidget *tqparent, const char *name) : + TQWidget(tqparent, name), m_userGDBCmdEditor(0), m_Interrupt(0), m_gdbView(0), @@ -62,7 +62,7 @@ GDBOutputWidget::GDBOutputWidget( TQWidget *parent, const char *name) : userGDBCmdEntry->setStretchFactor(m_userGDBCmdEditor, 1); m_Interrupt = new TQToolButton( this, "add breakpoint" ); - m_Interrupt->setSizePolicy ( TQSizePolicy ( (TQSizePolicy::SizeType)0, + m_Interrupt->tqsetSizePolicy ( TQSizePolicy ( (TQSizePolicy::SizeType)0, ( TQSizePolicy::SizeType)0, 0, 0, @@ -76,7 +76,7 @@ GDBOutputWidget::GDBOutputWidget( TQWidget *parent, const char *name) : topLayout->addWidget(m_gdbView, 10); topLayout->addLayout(userGDBCmdEntry); - slotDbgStatus( "", s_dbgNotStarted); + slotDbgtqStatus( "", s_dbgNotStarted); connect( m_userGDBCmdEditor, TQT_SIGNAL(returnPressed()), TQT_SLOT(slotGDBCmd()) ); connect( m_Interrupt, TQT_SIGNAL(clicked()), TQT_SIGNAL(breakInto())); @@ -257,7 +257,7 @@ void GDBOutputWidget::flushPending() /***************************************************************************/ -void GDBOutputWidget::slotDbgStatus(const TQString &, int statusFlag) +void GDBOutputWidget::slotDbgtqStatus(const TQString &, int statusFlag) { if (statusFlag & s_dbgNotStarted) { @@ -291,8 +291,8 @@ void GDBOutputWidget::focusInEvent(TQFocusEvent */*e*/) TQString GDBOutputWidget::html_escape(const TQString& s) { TQString r(s); - r.replace("<", "<"); - r.replace(">", ">"); + r.tqreplace("<", "<"); + r.tqreplace(">", ">"); return r; } @@ -327,8 +327,8 @@ TQPopupMenu* OutputText::createPopupMenu(const TQPoint&) this, TQT_SLOT(toggleShowInternalCommands())); - popup->setItemChecked(id, parent_->showInternalCommands_); - popup->setWhatsThis( + popup->setItemChecked(id, tqparent_->showInternalCommands_); + popup->tqsetWhatsThis( id, i18n( "Controls if commands issued internally by KDevelop " @@ -348,21 +348,21 @@ void OutputText::copyAll() { /* See comments for allCommandRaw_ for explanations of this complex logic, as opposed to calling text(). */ - TQStringList& raw = parent_->showInternalCommands_ ? - parent_->allCommandsRaw_ : parent_->userCommandsRaw_; + TQStringList& raw = tqparent_->showInternalCommands_ ? + tqparent_->allCommandsRaw_ : tqparent_->userCommandsRaw_; TQString text; for (unsigned i = 0; i < raw.size(); ++i) text += raw[i]; // Make sure the text is pastable both with Ctrl-C and with // middle click. - TQApplication::clipboard()->setText(text, QClipboard::Clipboard); - TQApplication::clipboard()->setText(text, QClipboard::Selection); + TQApplication::tqclipboard()->setText(text, TQClipboard::Clipboard); + TQApplication::tqclipboard()->setText(text, TQClipboard::Selection); } void OutputText::toggleShowInternalCommands() { - parent_->setShowInternalCommands(!parent_->showInternalCommands_); + tqparent_->setShowInternalCommands(!tqparent_->showInternalCommands_); } |