diff options
Diffstat (limited to 'quanta/src/document.cpp')
-rw-r--r-- | quanta/src/document.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/quanta/src/document.cpp b/quanta/src/document.cpp index 4e715a4a..b2663e27 100644 --- a/quanta/src/document.cpp +++ b/quanta/src/document.cpp @@ -93,8 +93,8 @@ extern GroupElementMapList globalGroupMap; Document::Document(KTextEditor::Document *doc, - TQWidget *tqparent, const char *name, WFlags f ) - : TQWidget(tqparent, name, f) + TQWidget *parent, const char *name, WFlags f ) + : TQWidget(parent, name, f) { m_dirty = false; busy = false; @@ -102,7 +102,7 @@ Document::Document(KTextEditor::Document *doc, m_md5sum = ""; m_doc = doc; m_view = 0L; //needed, because createView() calls processEvents() and the "this" may be deleted before m_view gets a value => crash on delete m_view; - m_view = m_doc->createView(tqparent, 0L); + m_view = m_doc->createView(parent, 0L); completionInProgress = false; argHintVisible = false; completionRequested = false; @@ -978,9 +978,9 @@ bool Document::xmlAutoCompletion(int line, int column, const TQString & string) if (string == "/" && s.endsWith("</") && tagName.isEmpty()) { Node *node = parser->nodeAt(line, column, false); - if (node && node->tqparent ) + if (node && node->parent ) { - node = node->tqparent; + node = node->parent; if (node->tag->type == Tag::XmlTag && (!node->next || !QuantaCommon::closesTag(node->tag, node->next->tag))) { TQString name = node->tag->name; @@ -1135,7 +1135,7 @@ TQValueList<KTextEditor::CompletionEntry>* Document::getGroupCompletions(Node *n Node *n = node; while (n && n != elementList[i]->parentNode) { - n = n->tqparent; + n = n->parent; } if (n == elementList[i]->parentNode) { @@ -1205,12 +1205,12 @@ TQValueList<KTextEditor::CompletionEntry>* Document::getTagCompletions(int line, } Node *node = parser->nodeAt(line, col); if (node && node->tag->type != Tag::XmlTag) - node = node->tqparent; + node = node->parent; if (node && node->tag->type != Tag::XmlTag) node = 0L; TQTag *parentTQTag= 0L; - if (node && node->tqparent) - parentTQTag = QuantaCommon::tagFromDTD(node->tqparent); + if (node && node->parent) + parentTQTag = QuantaCommon::tagFromDTD(node->parent); TQString textLine = editIf->textLine(line).left(col); TQString word = findWordRev(textLine, completionDTD).upper(); TQString classStr = ""; @@ -1260,7 +1260,7 @@ TQValueList<KTextEditor::CompletionEntry>* Document::getTagCompletions(int line, it = n->m_groupElements.erase(it); } delete gParser; - n = n->tqparent; + n = n->parent; } } else { @@ -1759,8 +1759,8 @@ bool Document::scriptAutoCompletion(int line, int column, const TQString& insert if (node->prev) node = node->prev; else - if (node->tqparent) - node = node->tqparent; + if (node->parent) + node = node->parent; int bl, bc; node->tag->beginPos(bl, bc); |