summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;