summaryrefslogtreecommitdiffstats
path: root/kviewshell/renderedDocumentPage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kviewshell/renderedDocumentPage.cpp')
-rw-r--r--kviewshell/renderedDocumentPage.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kviewshell/renderedDocumentPage.cpp b/kviewshell/renderedDocumentPage.cpp
index 1d535bc5..990f1de6 100644
--- a/kviewshell/renderedDocumentPage.cpp
+++ b/kviewshell/renderedDocumentPage.cpp
@@ -21,7 +21,7 @@ RenderedDocumentPage::RenderedDocumentPage()
textBoxList.reserve(250);
pageNr = 0;
isEmpty = true;
- pageText = TQString::null;
+ pageText = TQString();
}
@@ -46,7 +46,7 @@ void RenderedDocumentPage::clear()
textBoxList.clear();
hyperLinkList.clear();
- pageText = TQString::null;
+ pageText = TQString();
isEmpty = true;
}
@@ -194,7 +194,7 @@ TextSelection RenderedDocumentPage::select(const TQPoint& point)
for (unsigned int i=0; i<textBoxList.size(); i++)
{
- if (textBoxList[i].box.contains(point))
+ if (textBoxList[i].box.tqcontains(point))
{
selectedTextStart = i;
selectedTextEnd = i;
@@ -216,7 +216,7 @@ TextSelection RenderedDocumentPage::select(const TQPoint& point)
return selection;
}
-TextSelection RenderedDocumentPage::find(const TQString& str, int index, bool caseSensitive)
+TextSelection RenderedDocumentPage::tqfind(const TQString& str, int index, bool caseSensitive)
{
if (pageText.isNull())
{
@@ -241,7 +241,7 @@ TextSelection RenderedDocumentPage::find(const TQString& str, int index, bool ca
subIndex += textBoxList[i].text.length();
}
- int textIndex = pageText.find(str, subIndex, caseSensitive);
+ int textIndex = pageText.tqfind(str, subIndex, caseSensitive);
if (textIndex == -1)
return selection;
@@ -291,7 +291,7 @@ TextSelection RenderedDocumentPage::find(const TQString& str, int index, bool ca
}
-TextSelection RenderedDocumentPage::findRev(const TQString& str, int index, bool caseSensitive)
+TextSelection RenderedDocumentPage::tqfindRev(const TQString& str, int index, bool caseSensitive)
{
// Negative index means we start the search at the end of the text.
if (index < 0)
@@ -322,7 +322,7 @@ TextSelection RenderedDocumentPage::findRev(const TQString& str, int index, bool
subIndex += textBoxList[i].text.length();
}
- int textIndex = pageText.findRev(str, subIndex, caseSensitive);
+ int textIndex = pageText.tqfindRev(str, subIndex, caseSensitive);
if (textIndex == -1)
return selection;