summaryrefslogtreecommitdiffstats
path: root/src/notecontent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/notecontent.cpp')
-rw-r--r--src/notecontent.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/notecontent.cpp b/src/notecontent.cpp
index 38f01cd..d83b1bc 100644
--- a/src/notecontent.cpp
+++ b/src/notecontent.cpp
@@ -309,16 +309,16 @@ TQString LauncherContent::saveAsFilters() { return "application/x-desktop"; }
TQString ColorContent::saveAsFilters() { return ""; }
TQString UnknownContent::saveAsFilters() { return ""; }
-bool TextContent::match(const FilterData &data) { return (text().tqfind(data.string, /*index=*/0, /*cs=*/false) != -1); }
-bool HtmlContent::match(const FilterData &data) { return (m_textEquivalent/*toText("")*/.tqfind(data.string, /*index=*/0, /*cs=*/false) != -1); } //OPTIM_FILTER
+bool TextContent::match(const FilterData &data) { return (text().find(data.string, /*index=*/0, /*cs=*/false) != -1); }
+bool HtmlContent::match(const FilterData &data) { return (m_textEquivalent/*toText("")*/.find(data.string, /*index=*/0, /*cs=*/false) != -1); } //OPTIM_FILTER
bool ImageContent::match(const FilterData &/*data*/) { return false; }
bool AnimationContent::match(const FilterData &/*data*/) { return false; }
-bool SoundContent::match(const FilterData &data) { return (fileName().tqfind(data.string, /*index=*/0, /*cs=*/false) != -1); }
-bool FileContent::match(const FilterData &data) { return (fileName().tqfind(data.string, /*index=*/0, /*cs=*/false) != -1); }
-bool LinkContent::match(const FilterData &data) { return (title().tqfind(data.string, 0, false) != -1 || url().prettyURL().tqfind(data.string, 0, false) != -1); }
-bool LauncherContent::match(const FilterData &data) { return (exec().tqfind(data.string, 0, false) != -1 || name().tqfind(data.string, 0, false) != -1); }
-bool ColorContent::match(const FilterData &data) { return (TQString(color().name()).tqfind(data.string, /*index=*/0, /*cs=*/false) != -1); }
-bool UnknownContent::match(const FilterData &data) { return (mimeTypes().tqfind(data.string, /*index=*/0, /*cs=*/false) != -1); }
+bool SoundContent::match(const FilterData &data) { return (fileName().find(data.string, /*index=*/0, /*cs=*/false) != -1); }
+bool FileContent::match(const FilterData &data) { return (fileName().find(data.string, /*index=*/0, /*cs=*/false) != -1); }
+bool LinkContent::match(const FilterData &data) { return (title().find(data.string, 0, false) != -1 || url().prettyURL().find(data.string, 0, false) != -1); }
+bool LauncherContent::match(const FilterData &data) { return (exec().find(data.string, 0, false) != -1 || name().find(data.string, 0, false) != -1); }
+bool ColorContent::match(const FilterData &data) { return (TQString(color().name()).find(data.string, /*index=*/0, /*cs=*/false) != -1); }
+bool UnknownContent::match(const FilterData &data) { return (mimeTypes().find(data.string, /*index=*/0, /*cs=*/false) != -1); }
TQString TextContent::editToolTipText() { return i18n("Edit this plain text"); }
TQString HtmlContent::editToolTipText() { return i18n("Edit this text"); }
@@ -600,8 +600,8 @@ void TextContent::exportToHTML(HTMLExporter *exporter, int indent)
{
TQString spaces;
TQString html = "<html><head><meta name=\"qrichtext\" content=\"1\" /></head><body>" +
- Tools::tagURLs(Tools::textToHTMLWithoutP(text().tqreplace("\t", " "))); // Don't collapse multiple spaces!
- exporter->stream << html.tqreplace(" ", " &nbsp;").tqreplace("\n", "\n" + spaces.fill(' ', indent + 1));
+ Tools::tagURLs(Tools::textToHTMLWithoutP(text().replace("\t", " "))); // Don't collapse multiple spaces!
+ exporter->stream << html.replace(" ", " &nbsp;").replace("\n", "\n" + spaces.fill(' ', indent + 1));
}
/** class HtmlContent:
@@ -708,9 +708,9 @@ void HtmlContent::setHtml(const TQString &html, bool lazyLoad)
void HtmlContent::exportToHTML(HTMLExporter *exporter, int indent)
{
TQString spaces;
- exporter->stream << Tools::htmlToParagraph(Tools::tagURLs(html().tqreplace("\t", " ")))
- .tqreplace(" ", " &nbsp;")
- .tqreplace("\n", "\n" + spaces.fill(' ', indent + 1));
+ exporter->stream << Tools::htmlToParagraph(Tools::tagURLs(html().replace("\t", " ")))
+ .replace(" ", " &nbsp;")
+ .replace("\n", "\n" + spaces.fill(' ', indent + 1));
}
/** class ImageContent:
@@ -1144,7 +1144,7 @@ void FileContent::exportToHTML(HTMLExporter *exporter, int indent)
{
TQString spaces;
TQString fileName = exporter->copyFile(fullPath(), true);
- exporter->stream << m_linkDisplay.toHtml(exporter, KURL(exporter->dataFolderName + fileName), "").tqreplace("\n", "\n" + spaces.fill(' ', indent + 1));
+ exporter->stream << m_linkDisplay.toHtml(exporter, KURL(exporter->dataFolderName + fileName), "").replace("\n", "\n" + spaces.fill(' ', indent + 1));
}
/** class SoundContent:
@@ -1388,7 +1388,7 @@ void LinkContent::exportToHTML(HTMLExporter *exporter, int indent)
*/
TQString spaces;
- exporter->stream << m_linkDisplay.toHtml(exporter, linkURL, linkTitle).tqreplace("\n", "\n" + spaces.fill(' ', indent + 1));
+ exporter->stream << m_linkDisplay.toHtml(exporter, linkURL, linkTitle).replace("\n", "\n" + spaces.fill(' ', indent + 1));
}
/** class LauncherContent:
@@ -1505,7 +1505,7 @@ void LauncherContent::exportToHTML(HTMLExporter *exporter, int indent)
{
TQString spaces;
TQString fileName = exporter->copyFile(fullPath(), /*createIt=*/true);
- exporter->stream << m_linkDisplay.toHtml(exporter, KURL(exporter->dataFolderName + fileName), "").tqreplace("\n", "\n" + spaces.fill(' ', indent + 1));
+ exporter->stream << m_linkDisplay.toHtml(exporter, KURL(exporter->dataFolderName + fileName), "").replace("\n", "\n" + spaces.fill(' ', indent + 1));
}
/** class ColorContent:
@@ -1907,7 +1907,7 @@ void UnknownContent::addAlternateDragObjects(KMultipleDrag *dragObject)
void UnknownContent::exportToHTML(HTMLExporter *exporter, int indent)
{
TQString spaces;
- exporter->stream << "<div class=\"unknown\">" << mimeTypes().tqreplace("\n", "\n" + spaces.fill(' ', indent + 1 + 1)) << "</div>";
+ exporter->stream << "<div class=\"unknown\">" << mimeTypes().replace("\n", "\n" + spaces.fill(' ', indent + 1 + 1)) << "</div>";
}