summaryrefslogtreecommitdiffstats
path: root/konq-plugins/domtreeviewer/domtreeview.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
commit90363652674deb94cd07057428b24fcb1735dbce (patch)
tree35013223cb731f194f8584cc1c06a023c3c75c85 /konq-plugins/domtreeviewer/domtreeview.cpp
parent627b091fad9df13695f249588e8a58f524eda0fa (diff)
downloadtdeaddons-90363652674deb94cd07057428b24fcb1735dbce.tar.gz
tdeaddons-90363652674deb94cd07057428b24fcb1735dbce.zip
rename the following methods:
tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'konq-plugins/domtreeviewer/domtreeview.cpp')
-rw-r--r--konq-plugins/domtreeviewer/domtreeview.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/konq-plugins/domtreeviewer/domtreeview.cpp b/konq-plugins/domtreeviewer/domtreeview.cpp
index 84f78ac..615f056 100644
--- a/konq-plugins/domtreeviewer/domtreeview.cpp
+++ b/konq-plugins/domtreeviewer/domtreeview.cpp
@@ -64,8 +64,8 @@
using namespace domtreeviewer;
-DOMTreeView::DOMTreeView(TQWidget *tqparent, const char* name, bool /*allowSaving*/)
- : DOMTreeViewBase(tqparent, name), m_expansionDepth(5), m_maxDepth(0),
+DOMTreeView::DOMTreeView(TQWidget *parent, const char* name, bool /*allowSaving*/)
+ : DOMTreeViewBase(parent, name), m_expansionDepth(5), m_maxDepth(0),
m_bPure(true), m_bShowAttributes(true), m_bHighlightHTML(true),
m_findDialog(0), focused_child(0)
{
@@ -318,13 +318,13 @@ void DOMTreeView::addElement ( const DOM::Node &node, DOMListViewItem *cur_item
m_itemdict.insert(node.handle(), cur_item);
}
- DOMListViewItem *tqparent;
- if (cur_item->tqparent()) {
- tqparent = static_cast<DOMListViewItem *>(cur_item->tqparent());
+ DOMListViewItem *parent;
+ if (cur_item->parent()) {
+ parent = static_cast<DOMListViewItem *>(cur_item->parent());
} else {
- tqparent = cur_item;
+ parent = cur_item;
}
- cur_item = new DOMListViewItem(node, tqparent, cur_item);
+ cur_item = new DOMListViewItem(node, parent, cur_item);
}
// This is one is too much
DOMListViewItem *notLastItem = static_cast<DOMListViewItem *>(cur_item->itemAbove());
@@ -469,13 +469,13 @@ void DOMTreeView::slotMovedItems(TQPtrList<TQListViewItem> &items, TQPtrList<TQL
for (; it != items.end(); ++it, ++anit) {
DOMListViewItem *item = static_cast<DOMListViewItem *>(*it);
DOMListViewItem *anitem = static_cast<DOMListViewItem *>(*anit);
- DOM::Node tqparent = static_cast<DOMListViewItem *>(item->tqparent())->node();
- Q_ASSERT(!tqparent.isNull());
+ DOM::Node parent = static_cast<DOMListViewItem *>(item->parent())->node();
+ Q_ASSERT(!parent.isNull());
// kdDebug(90180) << " afternow " << anitem << " node " << (anitem ? anitem->node().nodeName().string() : TQString()) << "=" << (anitem ? anitem->node().nodeValue().string() : TQString()) << endl;
- cmd->addCommand(new MoveNodeCommand(item->node(), tqparent,
- anitem ? anitem->node().nextSibling() : tqparent.firstChild())
+ cmd->addCommand(new MoveNodeCommand(item->node(), parent,
+ anitem ? anitem->node().nextSibling() : parent.firstChild())
);
}
@@ -720,8 +720,8 @@ void DOMTreeView::hideMessageLine()
void DOMTreeView::moveToParent()
{
// This is a hypersmart algorithm.
- // If infoNode is defined, go to the tqparent of infoNode, otherwise, go
- // to the tqparent of the tree view's current item.
+ // If infoNode is defined, go to the parent of infoNode, otherwise, go
+ // to the parent of the tree view's current item.
// Hope this isn't too smart.
DOM::Node cur = infoNode;
@@ -773,15 +773,15 @@ void DOMTreeView::deleteNodes()
// don't regard node more than once
if (item->node() == last) continue;
- // check for selected tqparent
+ // check for selected parent
bool has_selected_parent = false;
- for (TQListViewItem *p = item->tqparent(); p; p = p->tqparent()) {
+ for (TQListViewItem *p = item->parent(); p; p = p->parent()) {
if (p->isSelected()) { has_selected_parent = true; break; }
}
if (has_selected_parent) continue;
// kdDebug(90180) << " item->node " << item->node().nodeName().string() << ": schedule for removal" << endl;
- // remove this node if it isn't already recursively removed by its tqparent
+ // remove this node if it isn't already recursively removed by its parent
cmd->addCommand(new RemoveNodeCommand(item->node(), item->node().parentNode(), item->node().nextSibling()));
last = item->node();
}
@@ -885,13 +885,13 @@ void DOMTreeView::slotAddElementDlg()
DOM::Node curNode = item->node();
try {
- DOM::Node tqparent = addBefore() ? curNode.parentNode() : curNode;
+ DOM::Node parent = addBefore() ? curNode.parentNode() : curNode;
DOM::Node after = addBefore() ? curNode : 0;
// ### take namespace into account
DOM::Node newNode = curNode.ownerDocument().createElement(qname);
- ManipulationCommand *cmd = new InsertNodeCommand(newNode, tqparent, after);
+ ManipulationCommand *cmd = new InsertNodeCommand(newNode, parent, after);
mainWindow()->executeAndAddCommand(cmd);
if (cmd->isValid()) activateNode(newNode);
@@ -921,12 +921,12 @@ void DOMTreeView::slotAddTextDlg()
DOM::Node curNode = item->node();
try {
- DOM::Node tqparent = addBefore() ? curNode.parentNode() : curNode;
+ DOM::Node parent = addBefore() ? curNode.parentNode() : curNode;
DOM::Node after = addBefore() ? curNode : 0;
DOM::Node newNode = curNode.ownerDocument().createTextNode(text);
- ManipulationCommand *cmd = new InsertNodeCommand(newNode, tqparent, after);
+ ManipulationCommand *cmd = new InsertNodeCommand(newNode, parent, after);
mainWindow()->executeAndAddCommand(cmd);
if (cmd->isValid()) activateNode(newNode);
@@ -950,14 +950,14 @@ class AttributeListItem : public TQListViewItem
bool _new;
public:
- AttributeListItem(TQListView *tqparent, TQListViewItem *prev)
- : super(tqparent, prev), _new(true)
+ AttributeListItem(TQListView *parent, TQListViewItem *prev)
+ : super(parent, prev), _new(true)
{
}
AttributeListItem(const TQString &attrName, const TQString &attrValue,
- TQListView *tqparent, TQListViewItem *prev)
- : super(tqparent, prev), _new(false)
+ TQListView *parent, TQListViewItem *prev)
+ : super(parent, prev), _new(false)
{
setText(0, attrName);
setText(1, attrValue);