From 32b67ac0690de411b26b1d5e715b188c27442248 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 22:19:39 +0000 Subject: rename the following methods: tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- parts/texttools/texttoolswidget.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'parts/texttools/texttoolswidget.cpp') 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(tqparent()); } + { return static_cast(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); -- cgit v1.2.1