From 6c79d50fa9fbdff7f69ca57a8ab5fcc942375593 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 22:19:39 +0000 Subject: rename the following methods: tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- quanta/treeviews/tagattributetree.cpp | 36 +++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'quanta/treeviews/tagattributetree.cpp') diff --git a/quanta/treeviews/tagattributetree.cpp b/quanta/treeviews/tagattributetree.cpp index d143caa7..0ef63151 100644 --- a/quanta/treeviews/tagattributetree.cpp +++ b/quanta/treeviews/tagattributetree.cpp @@ -50,8 +50,8 @@ #include "viewmanager.h" -EditableTree::EditableTree(TQWidget *tqparent, const char *name) -: KListView(tqparent, name) +EditableTree::EditableTree(TQWidget *parent, const char *name) +: KListView(parent, name) { m_editable = true; } @@ -100,8 +100,8 @@ void EditableTree::focusOutEvent(TQFocusEvent *) }*/ } -DualEditableTree::DualEditableTree(TQWidget *tqparent, const char *name) -: EditableTree(tqparent, name) +DualEditableTree::DualEditableTree(TQWidget *parent, const char *name) +: EditableTree(parent, name) { curCol = 0; setFocusPolicy(TQ_ClickFocus); @@ -216,8 +216,8 @@ void DualEditableTree::itemClicked(TQListViewItem *item, const TQPoint &, int co } } -TagAttributeTree::TagAttributeTree(TQWidget *tqparent, const char *name) -: EditableTree(tqparent, name) +TagAttributeTree::TagAttributeTree(TQWidget *parent, const char *name) +: EditableTree(parent, name) { setRootIsDecorated( true ); setSorting(-1); @@ -247,9 +247,9 @@ void TagAttributeTree::setCurrentNode(Node *node) return; clear(); m_parentItem = 0L; - //We don't want to be able to edit the text node but it's tqparent. + //We don't want to be able to edit the text node but it's parent. if (node && node->tag->type == Tag::Text) - m_node = node = node->tqparent; + m_node = node = node->parent; if (!node) return; #ifdef HEAVY_DEBUG @@ -260,7 +260,7 @@ void TagAttributeTree::setCurrentNode(Node *node) TopLevelItem *group = 0L; TQString attrName; TQTag *qTag = QuantaCommon::tagFromDTD(node); - Node *n = node->tqparent; + Node *n = node->parent; while (n) { if (n->tag->type == Tag::XmlTag) @@ -272,7 +272,7 @@ void TagAttributeTree::setCurrentNode(Node *node) } m_parentItem->addNode(n); } - n = n->tqparent; + n = n->parent; } if (m_parentItem) @@ -429,13 +429,13 @@ void TagAttributeTree::slotParentSelected(int index) void TagAttributeTree::slotCollapsed(TQListViewItem *item) { - if (m_parentItem && item == m_parentItem->tqparent()) + if (m_parentItem && item == m_parentItem->parent()) m_parentItem->showList(false); } void TagAttributeTree::slotExpanded(TQListViewItem *item) { - if (m_parentItem && item == m_parentItem->tqparent()) + if (m_parentItem && item == m_parentItem->parent()) m_parentItem->showList(true); } @@ -451,8 +451,8 @@ void TagAttributeTree::slotDelayedSetCurrentNode() } } -EnhancedTagAttributeTree::EnhancedTagAttributeTree(TQWidget *tqparent, const char *name) -: TQWidget(tqparent, name) +EnhancedTagAttributeTree::EnhancedTagAttributeTree(TQWidget *parent, const char *name) +: TQWidget(parent, name) { widgetLayout = new TQGridLayout( this, 1, 1, 11, 6, "MainLayout"); @@ -501,9 +501,9 @@ void EnhancedTagAttributeTree::setCurrentNode(Node *node) void EnhancedTagAttributeTree::NodeSelected(Node *node) { curNode = node; - //We don't want to be able to edit the text node but it's tqparent. + //We don't want to be able to edit the text node but it's parent. if (node && node->tag->type == Tag::Text) - curNode = node = node->tqparent; + curNode = node = node->parent; showCaption(); emit newNodeSelected(node); } @@ -614,14 +614,14 @@ void EnhancedTagAttributeTree::deleteNode() //remove the Nodes oldCurNode = curNode; - oldCurNodeParent = curNode->tqparent; + oldCurNodeParent = curNode->parent; curNode = 0L; attrTree->setCurrentNode(curNode); modifs = new NodeModifsSet(); kafkaCommon::extractAndDeleteNode(oldCurNode, modifs, false); - //Then we see if the new tqparent - child relationships are valid, and if not, delete the child and restart + //Then we see if the new parent - child relationships are valid, and if not, delete the child and restart if(oldCurNodeParent) { oldCurNodeParentTQTag = QuantaCommon::tagFromDTD(oldCurNodeParent); -- cgit v1.2.1