diff options
Diffstat (limited to 'languages/ruby/debugger/variablewidget.cpp')
-rw-r--r-- | languages/ruby/debugger/variablewidget.cpp | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/languages/ruby/debugger/variablewidget.cpp b/languages/ruby/debugger/variablewidget.cpp index 42a14322..0348e8f9 100644 --- a/languages/ruby/debugger/variablewidget.cpp +++ b/languages/ruby/debugger/variablewidget.cpp @@ -49,8 +49,8 @@ namespace RDBDebugger { -VariableWidget::VariableWidget(TQWidget *tqparent, const char *name) - : TQWidget(tqparent, name) +VariableWidget::VariableWidget(TQWidget *parent, const char *name) + : TQWidget(parent, name) { varTree_ = new VariableTree(this); TQLabel *label = new TQLabel(i18n("E&xpression to watch:"), this); @@ -127,8 +127,8 @@ void VariableWidget::savePartialProjectSession(TQDomElement* el) // ************************************************************************** // ************************************************************************** -VariableTree::VariableTree(VariableWidget *tqparent, const char *name) - : KListView(tqparent, name), +VariableTree::VariableTree(VariableWidget *parent, const char *name) + : KListView(parent, 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->tqparent() != 0) { + if (item->parent() != 0) { KPopupMenu popup(this); popup.insertTitle(item->text(VAR_NAME_COLUMN)); int idRemoveWatch = -2; @@ -233,7 +233,7 @@ void VariableTree::slotPressed(TQListViewItem * item) } while (item->rtti() == RTTI_VAR_ITEM) { - item = item->tqparent(); + item = item->parent(); } if ( item->rtti() == RTTI_GLOBAL_ROOT @@ -440,8 +440,8 @@ void VariableTree::maybeTip(const TQPoint &p) // ************************************************************************** // ************************************************************************** -LazyFetchItem::LazyFetchItem(VariableTree *tqparent) - : KListViewItem(tqparent), +LazyFetchItem::LazyFetchItem(VariableTree *parent) + : KListViewItem(parent), activationId_(0), waitingForData_(false) { @@ -450,8 +450,8 @@ LazyFetchItem::LazyFetchItem(VariableTree *tqparent) // ************************************************************************** -LazyFetchItem::LazyFetchItem(LazyFetchItem *tqparent) - : KListViewItem(tqparent), +LazyFetchItem::LazyFetchItem(LazyFetchItem *parent) + : KListViewItem(parent), 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 && tqparent() == 0) { + if (column == VAR_NAME_COLUMN && parent() == 0) { TQFont f = p->font(); f.setBold(true); p->setFont(f); @@ -526,8 +526,8 @@ void LazyFetchItem::prune() // ************************************************************************** // ************************************************************************** -VarItem::VarItem(LazyFetchItem *tqparent, const TQString &varName, DataType dataType) - : LazyFetchItem (tqparent), +VarItem::VarItem(LazyFetchItem *parent, const TQString &varName, DataType dataType) + : LazyFetchItem (parent), cache_(TQCString()), dataType_(dataType), highlight_(false) @@ -586,7 +586,7 @@ TQString VarItem::fullName() const TQString vPath(""); const VarItem *item = this; - if (item->tqparent()->rtti() != RTTI_VAR_ITEM) { + if (item->parent()->rtti() != RTTI_VAR_ITEM) { return itemName; } @@ -605,7 +605,7 @@ TQString VarItem::fullName() const vPath.prepend(itemName + "."); } } - item = (VarItem*) item->tqparent(); + item = (VarItem*) item->parent(); } // Change 'self.@foobar' to '@foobar' @@ -746,8 +746,8 @@ TQString VarItem::tipText() const // ************************************************************************** // ************************************************************************** -VarFrameRoot::VarFrameRoot(VariableTree *tqparent, int frameNo, int threadNo) - : LazyFetchItem(tqparent), +VarFrameRoot::VarFrameRoot(VariableTree *parent, int frameNo, int threadNo) + : LazyFetchItem(parent), needsVariables_(true), frameNo_(frameNo), threadNo_(threadNo), @@ -828,8 +828,8 @@ bool VarFrameRoot::needsVariables() const // ************************************************************************** -GlobalRoot::GlobalRoot(VariableTree *tqparent) - : LazyFetchItem(tqparent) +GlobalRoot::GlobalRoot(VariableTree *parent) + : LazyFetchItem(parent) { setText(0, i18n("Global")); setExpandable(true); @@ -872,8 +872,8 @@ void GlobalRoot::setOpen(bool open) // ************************************************************************** // ************************************************************************** -WatchVarItem::WatchVarItem( LazyFetchItem *tqparent, const TQString &varName, DataType dataType, int displayId ) - : VarItem(tqparent, varName, dataType), +WatchVarItem::WatchVarItem( LazyFetchItem *parent, const TQString &varName, DataType dataType, int displayId ) + : VarItem(parent, varName, dataType), displayId_(displayId) { } @@ -903,8 +903,8 @@ int WatchVarItem::displayId() // ************************************************************************** // ************************************************************************** -WatchRoot::WatchRoot(VariableTree *tqparent) - : LazyFetchItem(tqparent) +WatchRoot::WatchRoot(VariableTree *parent) + : LazyFetchItem(parent) { setText(VAR_NAME_COLUMN, i18n("Watch")); setOpen(true); |