summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commit1c143fef35113fa8fe63b60a67aa4b2ff81b3396 (patch)
tree207bda8f7bd63afeca58176bc023c13a0ebf20dc
parent0525bd68b1324389d0825761afec5d2ed252a9a5 (diff)
downloadkbookreader-1c143fef.tar.gz
kbookreader-1c143fef.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kbookreader@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r--src/bookwidget.cpp6
-rw-r--r--src/renderer.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/bookwidget.cpp b/src/bookwidget.cpp
index 880219b..6cd3dd4 100644
--- a/src/bookwidget.cpp
+++ b/src/bookwidget.cpp
@@ -224,11 +224,11 @@ void BookWidget::mousePressEvent(TQMouseEvent * event)
{
if (event->button() == Qt::LeftButton)
{
- if (rectLeftPage().tqcontains(event->pos()))
+ if (rectLeftPage().contains(event->pos()))
{
prevPage();
}
- else if (rectRightPage().tqcontains(event->pos()))
+ else if (rectRightPage().contains(event->pos()))
{
nextPage();
}
@@ -408,7 +408,7 @@ void BookWidget::setEncodings(const TQStringList & a_encodings)
void BookWidget::setEncoding(const TQString & a_encoding)
{
- m_encoding = (m_encodings.tqfindIndex(a_encoding));
+ m_encoding = (m_encodings.findIndex(a_encoding));
}
void BookWidget::addBookmark(const TQString& name)
diff --git a/src/renderer.cpp b/src/renderer.cpp
index fcc6eb7..963c987 100644
--- a/src/renderer.cpp
+++ b/src/renderer.cpp
@@ -332,7 +332,7 @@ void Renderer::drawLine(TQPainter & paint, int x, int y, const TLines::size_type
//count spaces
std::vector<int> spaces;
spaces.reserve(50);
- while (((pos = string.tqfind(' ', off)) != -1) && (pos < length))
+ while (((pos = string.find(' ', off)) != -1) && (pos < length))
{
spaces.push_back(pos);
off = pos + 1;