diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | 0254ebaa5e056092461fd585b6851d15faa43035 (patch) | |
tree | 2bf41a1c189b92dc1b9ab89e3ce392f8132214c4 /src/translators/htmlexporter.cpp | |
parent | fa071926f015f39711632b3fb9fe16004d93d0ec (diff) | |
download | tellico-0254ebaa5e056092461fd585b6851d15faa43035.tar.gz tellico-0254ebaa5e056092461fd585b6851d15faa43035.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/tellico@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/translators/htmlexporter.cpp')
-rw-r--r-- | src/translators/htmlexporter.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/translators/htmlexporter.cpp b/src/translators/htmlexporter.cpp index 77a09c0..8ea2218 100644 --- a/src/translators/htmlexporter.cpp +++ b/src/translators/htmlexporter.cpp @@ -292,7 +292,7 @@ void HTMLExporter::setFormattingOptions(Data::CollPtr coll) { } // the third sort column may be same as first - if(!m_sort3.isEmpty() && sortTitles.tqfindIndex(m_sort3) == -1) { + if(!m_sort3.isEmpty() && sortTitles.findIndex(m_sort3) == -1) { sortTitles << m_sort3; } @@ -539,7 +539,7 @@ const xmlChar* HTMLExporter::handleLink(const xmlChar* link_) { } TQString HTMLExporter::handleLink(const TQString& link_) { - if(m_links.tqcontains(link_)) { + if(m_links.contains(link_)) { return m_links[link_]; } // assume that if the link_ is not relative, then we don't need to copy it @@ -593,20 +593,20 @@ TQString HTMLExporter::analyzeInternalCSS(const TQString& str_) { int start = 0; int end = 0; const TQString url = TQString::tqfromLatin1("url("); - for(int pos = str.tqfind(url); pos >= 0; pos = str.tqfind(url, pos+1)) { + for(int pos = str.find(url); pos >= 0; pos = str.find(url, pos+1)) { pos += 4; // url( if(str[pos] == '"' || str[pos] == '\'') { ++pos; } start = pos; - pos = str.tqfind(')', start); + pos = str.find(')', start); end = pos; if(str[pos-1] == '"' || str[pos-1] == '\'') { --end; } - str.tqreplace(start, end-start, handleLink(str.mid(start, end-start))); + str.replace(start, end-start, handleLink(str.mid(start, end-start))); } return str; } @@ -704,7 +704,7 @@ bool HTMLExporter::writeEntryFiles() { if(multipleTitles) { file = file.section(';', 0, 0); } - file.tqreplace(badChars, TQChar('_')); + file.replace(badChars, TQChar('_')); file += TQChar('-') + TQString::number(entryIt->id()) + html; outputFile.setFileName(file); |