summaryrefslogtreecommitdiffstats
path: root/languages/ruby/debugger/rdbbreakpointwidget.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/ruby/debugger/rdbbreakpointwidget.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/ruby/debugger/rdbbreakpointwidget.cpp')
-rw-r--r--languages/ruby/debugger/rdbbreakpointwidget.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/languages/ruby/debugger/rdbbreakpointwidget.cpp b/languages/ruby/debugger/rdbbreakpointwidget.cpp
index b9ead060..7c987289 100644
--- a/languages/ruby/debugger/rdbbreakpointwidget.cpp
+++ b/languages/ruby/debugger/rdbbreakpointwidget.cpp
@@ -56,7 +56,7 @@ enum Column {
Control = 0,
Enable = 1,
Type = 2,
- Status = 3,
+ tqStatus = 3,
Location = 4
};
@@ -69,7 +69,7 @@ static int m_activeFlag = 0;
/***************************************************************************/
/***************************************************************************/
-class BreakpointTableRow : public QTableItem
+class BreakpointTableRow : public TQTableItem
{
public:
@@ -93,9 +93,9 @@ private:
/***************************************************************************/
/***************************************************************************/
-BreakpointTableRow::BreakpointTableRow(TQTable* parent, EditType editType,
+BreakpointTableRow::BreakpointTableRow(TQTable* tqparent, EditType editType,
Breakpoint* bp) :
- TQTableItem(parent, editType, ""),
+ TQTableItem(tqparent, editType, ""),
m_breakpoint(bp)
{
appendEmptyRow();
@@ -149,7 +149,7 @@ void BreakpointTableRow::setRow()
TQString status=m_breakpoint->statusDisplay(m_activeFlag);
- table()->setText(row(), Status, status);
+ table()->setText(row(), tqStatus, status);
TQString displayType = m_breakpoint->displayType();
table()->setText(row(), Location, m_breakpoint->location());
@@ -159,7 +159,7 @@ void BreakpointTableRow::setRow()
table()->setText(row(), Type, displayType);
table()->adjustColumn(Type);
- table()->adjustColumn(Status);
+ table()->adjustColumn(tqStatus);
table()->adjustColumn(Location);
}
}
@@ -168,8 +168,8 @@ void BreakpointTableRow::setRow()
/***************************************************************************/
/***************************************************************************/
-RDBBreakpointWidget::RDBBreakpointWidget(TQWidget *parent, const char *name) :
- TQHBox(parent, name)
+RDBBreakpointWidget::RDBBreakpointWidget(TQWidget *tqparent, const char *name) :
+ TQHBox(tqparent, name)
{
TQFrame* toolbar = new TQFrame( this );
TQVBoxLayout *l = new TQVBoxLayout(toolbar, 0, 0);
@@ -221,14 +221,14 @@ RDBBreakpointWidget::RDBBreakpointWidget(TQWidget *parent, const char *name) :
m_table->hideColumn(Control);
m_table->setColumnReadOnly(Type, true);
- m_table->setColumnReadOnly(Status, true);
+ m_table->setColumnReadOnly(tqStatus, true);
m_table->setColumnWidth( Enable, 20);
TQHeader *header = m_table->horizontalHeader();
header->setLabel( Enable, "" );
header->setLabel( Type, i18n("Type") );
- header->setLabel( Status, i18n("Status") );
+ header->setLabel( tqStatus, i18n("tqStatus") );
header->setLabel( Location, i18n("Location") );
m_table->show();
@@ -311,7 +311,7 @@ void RDBBreakpointWidget::slotRefreshBP(const KURL &filename)
/***************************************************************************/
-BreakpointTableRow* RDBBreakpointWidget::find(Breakpoint *breakpoint)
+BreakpointTableRow* RDBBreakpointWidget::tqfind(Breakpoint *breakpoint)
{
// NOTE:- The match doesn't have to be equal. Each type of bp
// must decide on the match criteria.
@@ -398,7 +398,7 @@ void RDBBreakpointWidget::slotToggleBreakpoint(const TQString &fileName, int lin
{
FilePosBreakpoint *fpBP = new FilePosBreakpoint(fileName, lineNum+1);
- BreakpointTableRow* btr = find(fpBP);
+ BreakpointTableRow* btr = tqfind(fpBP);
if (btr)
{
delete fpBP;
@@ -414,7 +414,7 @@ void RDBBreakpointWidget::slotToggleBreakpointEnabled(const TQString &fileName,
{
FilePosBreakpoint *fpBP = new FilePosBreakpoint(fileName, lineNum+1);
- BreakpointTableRow* btr = find(fpBP);
+ BreakpointTableRow* btr = tqfind(fpBP);
delete fpBP;
if (btr)
{
@@ -429,7 +429,7 @@ void RDBBreakpointWidget::slotToggleBreakpointEnabled(const TQString &fileName,
void RDBBreakpointWidget::slotToggleWatchpoint(const TQString &varName)
{
Watchpoint *watchpoint = new Watchpoint(varName, false, true);
- BreakpointTableRow* btr = find(watchpoint);
+ BreakpointTableRow* btr = tqfind(watchpoint);
if (btr)
{
removeBreakpoint(btr);
@@ -460,7 +460,7 @@ void RDBBreakpointWidget::slotSetPendingBPs()
/***************************************************************************/
// The debugger is having trouble with this bp - probably because a library
-// was unloaded and invalidated a bp that was previously set in the library
+// was unloaded and tqinvalidated a bp that was previously set in the library
// code. Reset the bp so that we can try again later.
void RDBBreakpointWidget::slotUnableToSetBPNow(int BPid)
{
@@ -773,7 +773,7 @@ void RDBBreakpointWidget::slotNewValue(int row, int col)
}
case Type:
- case Status:
+ case tqStatus:
default:
break;
}
@@ -792,7 +792,7 @@ void RDBBreakpointWidget::slotEditBreakpoint(const TQString &fileName, int lineN
{
FilePosBreakpoint *fpBP = new FilePosBreakpoint(fileName, lineNum+1);
- BreakpointTableRow* btr = find(fpBP);
+ BreakpointTableRow* btr = tqfind(fpBP);
delete fpBP;
if (btr)
@@ -889,7 +889,7 @@ void RDBBreakpointWidget::restorePartialProjectSession(const TQDomElement* el)
bp->setEnabled(breakpointEl.attribute( "enabled", "1").toInt());
// Add the bp if we don't already have it.
- if (!find(bp))
+ if (!tqfind(bp))
addBreakpoint(bp);
else
delete bp;
@@ -904,7 +904,7 @@ void RDBBreakpointWidget::slotAddBreakpoint( )
{
if (m_add->popup())
{
- m_add->popup()->popup(mapToGlobal(this->geometry().topLeft()));
+ m_add->popup()->popup(mapToGlobal(this->tqgeometry().topLeft()));
}
}