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/texttoolspart.cpp | 4 ++-- parts/texttools/texttoolspart.h | 2 +- parts/texttools/texttoolswidget.cpp | 20 ++++++++++---------- parts/texttools/texttoolswidget.h | 2 +- 4 files changed, 14 insertions(+), 14 deletions(-) (limited to 'parts/texttools') diff --git a/parts/texttools/texttoolspart.cpp b/parts/texttools/texttoolspart.cpp index 3697b89f..332d97e3 100644 --- a/parts/texttools/texttoolspart.cpp +++ b/parts/texttools/texttoolspart.cpp @@ -28,8 +28,8 @@ typedef KDevGenericFactory TextToolsFactory; static const KDevPluginInfo data("kdevtexttools"); K_EXPORT_COMPONENT_FACTORY( libkdevtexttools, TextToolsFactory( data ) ) -TextToolsPart::TextToolsPart(TQObject *tqparent, const char *name, const TQStringList &) - : KDevPlugin(&data, tqparent, name ? name : "TextToolsPart") +TextToolsPart::TextToolsPart(TQObject *parent, const char *name, const TQStringList &) + : KDevPlugin(&data, parent, name ? name : "TextToolsPart") { setInstance(TextToolsFactory::instance()); // setXMLFile("kdevfileview.rc"); diff --git a/parts/texttools/texttoolspart.h b/parts/texttools/texttoolspart.h index 42443c48..2f2768ab 100644 --- a/parts/texttools/texttoolspart.h +++ b/parts/texttools/texttoolspart.h @@ -25,7 +25,7 @@ class TextToolsPart : public KDevPlugin TQ_OBJECT public: - TextToolsPart( TQObject *tqparent, const char *name, const TQStringList & ); + TextToolsPart( TQObject *parent, const char *name, const TQStringList & ); ~TextToolsPart(); private slots: 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); diff --git a/parts/texttools/texttoolswidget.h b/parts/texttools/texttoolswidget.h index edbd834b..0d5593a2 100644 --- a/parts/texttools/texttoolswidget.h +++ b/parts/texttools/texttoolswidget.h @@ -29,7 +29,7 @@ class TextToolsWidget : public KListView public: enum Mode { HTML, Docbook, LaTeX }; - TextToolsWidget( TextToolsPart *part, TQWidget *tqparent=0, const char *name=0 ); + TextToolsWidget( TextToolsPart *part, TQWidget *parent=0, const char *name=0 ); ~TextToolsWidget(); void setMode(Mode mode, KParts::Part *part); -- cgit v1.2.1