summaryrefslogtreecommitdiffstats
path: root/kviewshell/renderedDocumentPage.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
commite69e8b1d09fb579316595b4e6a850e717358a8b1 (patch)
treea24fc20865f65772f530d16177520190594ffdd2 /kviewshell/renderedDocumentPage.cpp
parenteecec9afb81fdebb0f22e9da22635874c403f854 (diff)
downloadtdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.tar.gz
tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.zip
TQt4 port kdegraphics
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237557 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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;