diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
commit | 6c79d50fa9fbdff7f69ca57a8ab5fcc942375593 (patch) | |
tree | f47737d56c3239a0d8bc600674f0ca04b6e30d6e /quanta/parts/kafka/kafkahtmlpart.cpp | |
parent | 36c36b53a129509d56fdaa0a7c9fcbcacd0c5826 (diff) | |
download | tdewebdev-6c79d50fa9fbdff7f69ca57a8ab5fcc942375593.tar.gz tdewebdev-6c79d50fa9fbdff7f69ca57a8ab5fcc942375593.zip |
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
Diffstat (limited to 'quanta/parts/kafka/kafkahtmlpart.cpp')
-rw-r--r-- | quanta/parts/kafka/kafkahtmlpart.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/quanta/parts/kafka/kafkahtmlpart.cpp b/quanta/parts/kafka/kafkahtmlpart.cpp index ed31f049..20a583e8 100644 --- a/quanta/parts/kafka/kafkahtmlpart.cpp +++ b/quanta/parts/kafka/kafkahtmlpart.cpp @@ -83,9 +83,9 @@ public: #endif }; -KafkaWidget::KafkaWidget(TQWidget *tqparent, TQWidget *widgetParent, KafkaDocument *part, +KafkaWidget::KafkaWidget(TQWidget *parent, TQWidget *widgetParent, KafkaDocument *part, const char *name) - : KHTMLPart(widgetParent, name, TQT_TQOBJECT(tqparent), name), + : KHTMLPart(widgetParent, name, TQT_TQOBJECT(parent), name), w(part) { m_contextPopupMenu = new TQPopupMenu(); @@ -205,10 +205,10 @@ void KafkaWidget::insertText(DOM::Node node, const TQString &text, int position) else if(position == 0) { DOM::Text textNode = document().createTextNode(text); - DOM::Node tqparent = node.parentNode(); -//FIXME: Andras: safety checks, as tqparent can be null. Maybe it just hides the error... - if (!tqparent.isNull()) - tqparent.insertBefore(textNode, node); + DOM::Node parent = node.parentNode(); +//FIXME: Andras: safety checks, as parent can be null. Maybe it just hides the error... + if (!parent.isNull()) + parent.insertBefore(textNode, node); else node.appendChild(textNode); m_currentNode = textNode; @@ -223,15 +223,15 @@ void KafkaWidget::insertText(DOM::Node node, const TQString &text, int position) else if(position == 3 || (position == 1 && (focus == kNodeAttrs::singleNodeAndItself))) { DOM::Text textNode = document().createTextNode(text); - DOM::Node tqparent = node.parentNode(); -//FIXME: Andras: safety checks, as tqparent and node.nextSibling can be null. Maybe it just hides the error... + DOM::Node parent = node.parentNode(); +//FIXME: Andras: safety checks, as parent and node.nextSibling can be null. Maybe it just hides the error... //Also it seems that position can be 3 and node is "body". See bug 112733. - if (node.nodeName().string().lower() != "body" && !tqparent.isNull()) + if (node.nodeName().string().lower() != "body" && !parent.isNull()) { if (!node.nextSibling().isNull()) - tqparent.insertBefore(textNode, node.nextSibling()); + parent.insertBefore(textNode, node.nextSibling()); else - tqparent.insertBefore(textNode, node); + parent.insertBefore(textNode, node); } else node.appendChild(textNode); @@ -947,7 +947,7 @@ void KafkaWidget::keyDelete() #endif _nodeParent = _nodeNext.parentNode(); - //If this empty text contains the cursor, change node to its tqparent. + //If this empty text contains the cursor, change node to its parent. if(_nodeNext == _node && _nodeParent.firstChild() == _nodeNext && _nodeNext.nextSibling().isNull()) { @@ -964,7 +964,7 @@ void KafkaWidget::keyDelete() //Else if the current Node is a BLOCK which can be entered/leaved e.g. H1 else if(attrs->chCurFoc() == kNodeAttrs::blockNode) { - //First look if it is one of _node's tqparent + //First look if it is one of _node's parent isParent = false; temp = _node; while(!temp.isNull()) @@ -1127,7 +1127,7 @@ void KafkaWidget::keyDelete() #endif _nodeParent = _nodeNext.parentNode(); - //If this block is used to define the cursor pos, change node to its tqparent. + //If this block is used to define the cursor pos, change node to its parent. if(_nodeNext == _node && _nodeParent.firstChild() == _nodeNext && _nodeNext.nextSibling().isNull()) { @@ -1392,7 +1392,7 @@ void KafkaWidget::keyBackspace() //Else if the current Node if a BLOCK which can be entered/leaved e.g. H1, P else if(attrs->chCurFoc() == kNodeAttrs::blockNode) { - //First look if it is one of _node's tqparent + //First look if it is one of _node's parent isParent = false; temp = _node; while(!temp.isNull()) |