summaryrefslogtreecommitdiffstats
path: root/quanta/parts/kafka/kafkahtmlpart.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/parts/kafka/kafkahtmlpart.cpp')
-rw-r--r--quanta/parts/kafka/kafkahtmlpart.cpp30
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())