diff options
Diffstat (limited to 'parts/texttools/texttoolswidget.cpp')
-rw-r--r-- | parts/texttools/texttoolswidget.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/parts/texttools/texttoolswidget.cpp b/parts/texttools/texttoolswidget.cpp index 1f7c9375..59a6fb21 100644 --- a/parts/texttools/texttoolswidget.cpp +++ b/parts/texttools/texttoolswidget.cpp @@ -47,7 +47,7 @@ public: { return extra.isNull()? tag : TQString("%1: %2").tqarg(tag).tqarg(extra); } - TextStructItem *tqparentStructItem() + TextStructItem *parentStructItem() { return static_cast<TextStructItem*>(tqparent()); } TQString tag; @@ -298,10 +298,10 @@ void TextToolsWidget::parseXML() TextStructItem *closingItem = currentItem; while (closingItem->tqparent() && closingItem->tag != tag) - closingItem = closingItem->tqparentStructItem(); + closingItem = closingItem->parentStructItem(); if (closingItem->tqparent()) { closingItem->endpos = endpos; - currentItem = closingItem->tqparentStructItem(); + currentItem = closingItem->parentStructItem(); } else { kdDebug(9030) << "found no opening tag " << tag << "." << endl; } @@ -378,7 +378,7 @@ void TextToolsWidget::parseLaTeX() kdDebug(9030) << "Match with " << tag << " and title " << title << endl; int level = hierarchyLevels.tqfind(tag); while (currentItem->tqparent() && level <= hierarchyLevels.tqfind(currentItem->tag)) - currentItem = currentItem->tqparentStructItem(); + currentItem = currentItem->parentStructItem(); TextStructItem *item = new TextStructItem(currentItem); item->tag = tag; |