diff options
Diffstat (limited to 'parts/texttools/texttoolswidget.cpp')
-rw-r--r-- | parts/texttools/texttoolswidget.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/parts/texttools/texttoolswidget.cpp b/parts/texttools/texttoolswidget.cpp index 269c8136..a6815959 100644 --- a/parts/texttools/texttoolswidget.cpp +++ b/parts/texttools/texttoolswidget.cpp @@ -30,11 +30,11 @@ class TextStructItem : public TQListViewItem { public: - TextStructItem(TQListView *tqparent) - : TQListViewItem(tqparent) + TextStructItem(TQListView *parent) + : TQListViewItem(parent) {} - TextStructItem(TQListViewItem *tqparent) - : TQListViewItem(tqparent) + TextStructItem(TQListViewItem *parent) + : TQListViewItem(parent) { TQListViewItem *item = this; while (item->nextSibling()) @@ -48,7 +48,7 @@ public: return extra.isNull()? tag : TQString("%1: %2").tqarg(tag).tqarg(extra); } TextStructItem *parentStructItem() - { return static_cast<TextStructItem*>(tqparent()); } + { return static_cast<TextStructItem*>(parent()); } TQString tag; TQString extra; @@ -57,8 +57,8 @@ public: }; -TextToolsWidget::TextToolsWidget(TextToolsPart *part, TQWidget *tqparent, const char *name) - : KListView(tqparent, name) +TextToolsWidget::TextToolsWidget(TextToolsPart *part, TQWidget *parent, const char *name) + : KListView(parent, name) { setResizeMode(TQListView::LastColumn); setSorting(-1); @@ -297,9 +297,9 @@ void TextToolsWidget::parseXML() } TextStructItem *closingItem = currentItem; - while (closingItem->tqparent() && closingItem->tag != tag) + while (closingItem->parent() && closingItem->tag != tag) closingItem = closingItem->parentStructItem(); - if (closingItem->tqparent()) { + if (closingItem->parent()) { closingItem->endpos = endpos; currentItem = closingItem->parentStructItem(); } else { @@ -377,7 +377,7 @@ void TextToolsWidget::parseLaTeX() TQString title = re.cap(2); kdDebug(9030) << "Match with " << tag << " and title " << title << endl; int level = hierarchyLevels.find(tag); - while (currentItem->tqparent() && level <= hierarchyLevels.find(currentItem->tag)) + while (currentItem->parent() && level <= hierarchyLevels.find(currentItem->tag)) currentItem = currentItem->parentStructItem(); TextStructItem *item = new TextStructItem(currentItem); |