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
v3.5.13-sru
tpearson 13 years ago
parent 0525bd68b1
commit 1c143fef35

@ -224,11 +224,11 @@ void BookWidget::mousePressEvent(TQMouseEvent * event)
{ {
if (event->button() == Qt::LeftButton) if (event->button() == Qt::LeftButton)
{ {
if (rectLeftPage().tqcontains(event->pos())) if (rectLeftPage().contains(event->pos()))
{ {
prevPage(); prevPage();
} }
else if (rectRightPage().tqcontains(event->pos())) else if (rectRightPage().contains(event->pos()))
{ {
nextPage(); nextPage();
} }
@ -408,7 +408,7 @@ void BookWidget::setEncodings(const TQStringList & a_encodings)
void BookWidget::setEncoding(const TQString & a_encoding) 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) void BookWidget::addBookmark(const TQString& name)

@ -332,7 +332,7 @@ void Renderer::drawLine(TQPainter & paint, int x, int y, const TLines::size_type
//count spaces //count spaces
std::vector<int> spaces; std::vector<int> spaces;
spaces.reserve(50); spaces.reserve(50);
while (((pos = string.tqfind(' ', off)) != -1) && (pos < length)) while (((pos = string.find(' ', off)) != -1) && (pos < length))
{ {
spaces.push_back(pos); spaces.push_back(pos);
off = pos + 1; off = pos + 1;

Loading…
Cancel
Save