summaryrefslogtreecommitdiffstats
path: root/parts/texttools/texttoolswidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parts/texttools/texttoolswidget.cpp')
-rw-r--r--parts/texttools/texttoolswidget.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/parts/texttools/texttoolswidget.cpp b/parts/texttools/texttoolswidget.cpp
index 59a6fb21..269c8136 100644
--- a/parts/texttools/texttoolswidget.cpp
+++ b/parts/texttools/texttoolswidget.cpp
@@ -291,7 +291,7 @@ void TextToolsWidget::parseXML()
++endpos;
}
- if (!m_relevantTags.tqcontains(tag)) {
+ if (!m_relevantTags.contains(tag)) {
pos = endpos;
continue;
}
@@ -327,7 +327,7 @@ void TextToolsWidget::parseXML()
++endpos;
}
- if (!m_relevantTags.tqcontains(tag)) {
+ if (!m_relevantTags.contains(tag)) {
pos = endpos;
continue;
}
@@ -337,7 +337,7 @@ void TextToolsWidget::parseXML()
item->pos = pos;
item->endpos = -1;
- if (m_emptyTags.tqcontains(tag))
+ if (m_emptyTags.contains(tag))
item->endpos = endpos;
else
currentItem = item;
@@ -376,8 +376,8 @@ void TextToolsWidget::parseLaTeX()
TQString tag = re.cap(1);
TQString title = re.cap(2);
kdDebug(9030) << "Match with " << tag << " and title " << title << endl;
- int level = hierarchyLevels.tqfind(tag);
- while (currentItem->tqparent() && level <= hierarchyLevels.tqfind(currentItem->tag))
+ int level = hierarchyLevels.find(tag);
+ while (currentItem->tqparent() && level <= hierarchyLevels.find(currentItem->tag))
currentItem = currentItem->parentStructItem();
TextStructItem *item = new TextStructItem(currentItem);
@@ -386,7 +386,7 @@ void TextToolsWidget::parseLaTeX()
item->pos = pos+1;
item->endpos = pos+re.matchedLength()-1; // lie
- if (level > hierarchyLevels.tqfind(currentItem->tag))
+ if (level > hierarchyLevels.find(currentItem->tag))
currentItem = item;
pos = pos+re.matchedLength();