summaryrefslogtreecommitdiffstats
path: root/languages/ruby/debugger/variablewidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'languages/ruby/debugger/variablewidget.cpp')
-rw-r--r--languages/ruby/debugger/variablewidget.cpp68
1 files changed, 34 insertions, 34 deletions
diff --git a/languages/ruby/debugger/variablewidget.cpp b/languages/ruby/debugger/variablewidget.cpp
index fd323fd5..32b5d1ef 100644
--- a/languages/ruby/debugger/variablewidget.cpp
+++ b/languages/ruby/debugger/variablewidget.cpp
@@ -49,8 +49,8 @@
namespace RDBDebugger
{
-VariableWidget::VariableWidget(TQWidget *parent, const char *name)
- : TQWidget(parent, name)
+VariableWidget::VariableWidget(TQWidget *tqparent, const char *name)
+ : TQWidget(tqparent, name)
{
varTree_ = new VariableTree(this);
TQLabel *label = new TQLabel(i18n("E&xpression to watch:"), this);
@@ -81,8 +81,8 @@ VariableWidget::VariableWidget(TQWidget *parent, const char *name)
void VariableWidget::setEnabled(bool bEnabled)
{
TQWidget::setEnabled(bEnabled);
- if (bEnabled && parentWidget() != 0) {
- varTree_->setColumnWidth(0, parentWidget()->width()/2);
+ if (bEnabled && tqparentWidget() != 0) {
+ varTree_->setColumnWidth(0, tqparentWidget()->width()/2);
}
}
// **************************************************************************
@@ -127,8 +127,8 @@ void VariableWidget::savePartialProjectSession(TQDomElement* el)
// **************************************************************************
// **************************************************************************
-VariableTree::VariableTree(VariableWidget *parent, const char *name)
- : KListView(parent, name),
+VariableTree::VariableTree(VariableWidget *tqparent, const char *name)
+ : KListView(tqparent, name),
TQToolTip( viewport() ),
activationId_(0),
currentThread_(-1),
@@ -187,7 +187,7 @@ void VariableTree::slotContextMenu(KListView *, TQListViewItem *item)
setSelected(item, true); // Need to select this item.
- if (item->parent() != 0) {
+ if (item->tqparent() != 0) {
KPopupMenu popup(this);
popup.insertTitle(item->text(VAR_NAME_COLUMN));
int idRemoveWatch = -2;
@@ -202,11 +202,11 @@ void VariableTree::slotContextMenu(KListView *, TQListViewItem *item)
emit removeWatchExpression(((WatchVarItem*)item)->displayId());
delete item;
} else if (res == idCopyToClipboard) {
- QClipboard *qb = KApplication::clipboard();
+ TQClipboard *qb = KApplication::tqclipboard();
TQString text = "{ \"" + item->text( VAR_NAME_COLUMN ) + "\", " +
"\"" + item->text( VALUE_COLUMN ) + "\" }";
- qb->setText( text, QClipboard::Clipboard );
+ qb->setText( text, TQClipboard::Clipboard );
}
}
}
@@ -233,7 +233,7 @@ void VariableTree::slotPressed(TQListViewItem * item)
}
while (item->rtti() == RTTI_VAR_ITEM) {
- item = item->parent();
+ item = item->tqparent();
}
if ( item->rtti() == RTTI_GLOBAL_ROOT
@@ -280,7 +280,7 @@ void VariableTree::prune()
// **************************************************************************
-// The debugger has moved onto the next program pause, so invalidate
+// The debugger has moved onto the next program pause, so tqinvalidate
// everything in the Variable Tree
void VariableTree::nextActivationId()
{
@@ -329,7 +329,7 @@ bool VariableTree::schedule()
if (frame->needsVariables()) {
if (TQApplication::overrideCursor() == 0) {
- TQApplication::setOverrideCursor(TQCursor(Qt::WaitCursor));
+ TQApplication::setOverrideCursor(TQCursor(TQt::WaitCursor));
}
// Tell the controller to fetch the variable values
@@ -428,7 +428,7 @@ void VariableTree::maybeTip(const TQPoint &p)
{
VarItem * item = dynamic_cast<VarItem*>( itemAt(p) );
if (item != 0) {
- TQRect r = itemRect(item);
+ TQRect r = tqitemRect(item);
if (r.isValid()) {
tip(r, item->tipText());
}
@@ -440,8 +440,8 @@ void VariableTree::maybeTip(const TQPoint &p)
// **************************************************************************
// **************************************************************************
-LazyFetchItem::LazyFetchItem(VariableTree *parent)
- : KListViewItem(parent),
+LazyFetchItem::LazyFetchItem(VariableTree *tqparent)
+ : KListViewItem(tqparent),
activationId_(0),
waitingForData_(false)
{
@@ -450,8 +450,8 @@ LazyFetchItem::LazyFetchItem(VariableTree *parent)
// **************************************************************************
-LazyFetchItem::LazyFetchItem(LazyFetchItem *parent)
- : KListViewItem(parent),
+LazyFetchItem::LazyFetchItem(LazyFetchItem *tqparent)
+ : KListViewItem(tqparent),
activationId_(0),
waitingForData_(false)
{
@@ -474,7 +474,7 @@ void LazyFetchItem::paintCell(TQPainter *p, const TQColorGroup &cg,
}
// make toplevel item (watch and frame items) names bold
- if (column == VAR_NAME_COLUMN && parent() == 0) {
+ if (column == VAR_NAME_COLUMN && tqparent() == 0) {
TQFont f = p->font();
f.setBold(true);
p->setFont(f);
@@ -526,8 +526,8 @@ void LazyFetchItem::prune()
// **************************************************************************
// **************************************************************************
-VarItem::VarItem(LazyFetchItem *parent, const TQString &varName, DataType dataType)
- : LazyFetchItem (parent),
+VarItem::VarItem(LazyFetchItem *tqparent, const TQString &varName, DataType dataType)
+ : LazyFetchItem (tqparent),
cache_(TQCString()),
dataType_(dataType),
highlight_(false)
@@ -586,7 +586,7 @@ TQString VarItem::fullName() const
TQString vPath("");
const VarItem *item = this;
- if (item->parent()->rtti() != RTTI_VAR_ITEM) {
+ if (item->tqparent()->rtti() != RTTI_VAR_ITEM) {
return itemName;
}
@@ -605,17 +605,17 @@ TQString VarItem::fullName() const
vPath.prepend(itemName + ".");
}
}
- item = (VarItem*) item->parent();
+ item = (VarItem*) item->tqparent();
}
// Change 'self.@foobar' to '@foobar'
- vPath.replace(TQRegExp("^self\\.@"), "@");
+ vPath.tqreplace(TQRegExp("^self\\.@"), "@");
// Use instance_variable_get() to access any '@var's in the middle of a path
TQRegExp re_instance_var("\\.(@[^\\[.]+)");
int pos = re_instance_var.search(vPath);
while (pos != -1) {
- vPath.replace( pos,
+ vPath.tqreplace( pos,
re_instance_var.matchedLength(),
TQString(".instance_variable_get(:") + re_instance_var.cap(1) + ")" );
pos = re_instance_var.search(vPath, pos);
@@ -635,7 +635,7 @@ void VarItem::setText(int column, const TQString &data)
}
TQListViewItem::setText(column, data);
- repaint();
+ tqrepaint();
}
// **************************************************************************
@@ -746,8 +746,8 @@ TQString VarItem::tipText() const
// **************************************************************************
// **************************************************************************
-VarFrameRoot::VarFrameRoot(VariableTree *parent, int frameNo, int threadNo)
- : LazyFetchItem(parent),
+VarFrameRoot::VarFrameRoot(VariableTree *tqparent, int frameNo, int threadNo)
+ : LazyFetchItem(tqparent),
needsVariables_(true),
frameNo_(frameNo),
threadNo_(threadNo),
@@ -816,7 +816,7 @@ void VarFrameRoot::setActivationId()
bool VarFrameRoot::needsVariables() const
{
- return ( text(VAR_NAME_COLUMN).contains("try_initialize") == 0
+ return ( text(VAR_NAME_COLUMN).tqcontains("try_initialize") == 0
&& isOpen()
&& !isWaitingForData()
&& needsVariables_ );
@@ -828,8 +828,8 @@ bool VarFrameRoot::needsVariables() const
// **************************************************************************
-GlobalRoot::GlobalRoot(VariableTree *parent)
- : LazyFetchItem(parent)
+GlobalRoot::GlobalRoot(VariableTree *tqparent)
+ : LazyFetchItem(tqparent)
{
setText(0, i18n("Global"));
setExpandable(true);
@@ -872,8 +872,8 @@ void GlobalRoot::setOpen(bool open)
// **************************************************************************
// **************************************************************************
-WatchVarItem::WatchVarItem( LazyFetchItem *parent, const TQString &varName, DataType dataType, int displayId )
- : VarItem(parent, varName, dataType),
+WatchVarItem::WatchVarItem( LazyFetchItem *tqparent, const TQString &varName, DataType dataType, int displayId )
+ : VarItem(tqparent, varName, dataType),
displayId_(displayId)
{
}
@@ -903,8 +903,8 @@ int WatchVarItem::displayId()
// **************************************************************************
// **************************************************************************
-WatchRoot::WatchRoot(VariableTree *parent)
- : LazyFetchItem(parent)
+WatchRoot::WatchRoot(VariableTree *tqparent)
+ : LazyFetchItem(tqparent)
{
setText(VAR_NAME_COLUMN, i18n("Watch"));
setOpen(true);