From 560378aaca1784ba19806a0414a32b20c744de39 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 3 Jan 2011 04:12:51 +0000 Subject: Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1 NOTE: This will not compile with Qt4 (yet), however it does compile with Qt3 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211081 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- khtml/rendering/render_text.cpp | 54 ++++++++++++++++++++--------------------- 1 file changed, 27 insertions(+), 27 deletions(-) (limited to 'khtml/rendering/render_text.cpp') diff --git a/khtml/rendering/render_text.cpp b/khtml/rendering/render_text.cpp index 0bded06fc..a45fc8583 100644 --- a/khtml/rendering/render_text.cpp +++ b/khtml/rendering/render_text.cpp @@ -88,7 +88,7 @@ void InlineTextBox::operator delete(void* ptr, size_t sz) { assert(inInlineTextBoxDetach); - // Stash size where detach can find it. + // Stash size where detach can tqfind it. *(size_t *)ptr = sz; } @@ -230,7 +230,7 @@ void InlineTextBox::paintSelection(const Font *f, RenderText *text, TQPainter *p // In this case, simply swap the colors, thus in compliance with // NN4 (win32 only), IE, and Mozilla. if (!khtml::hasSufficientContrast(hbg, bg)) - qSwap(hc, hbg); + tqSwap(hc, hbg); } p->setPen(hc); @@ -319,9 +319,9 @@ void InlineTextBox::paintShadow(TQPainter *pt, const Font *f, int _tx, int _ty, const int w = m_width+2*thickness; const int h = m_height+2*thickness; const QRgb color = shadow->color.rgb(); - const int gray = qGray(color); + const int gray = tqGray(color); const bool inverse = (gray < 100); - const QRgb bgColor = (inverse) ? qRgb(255,255,255) : qRgb(0,0,0); + const QRgb bgColor = (inverse) ? tqRgb(255,255,255) : tqRgb(0,0,0); TQPixmap pixmap(w, h); pixmap.fill(bgColor); TQPainter p; @@ -365,7 +365,7 @@ void InlineTextBox::paintShadow(TQPainter *pt, const Font *f, int _tx, int _ty, for(int i=thickness; i 255) a = 255; - res.setPixel(i,j, qRgba(r,g,b,a)); + res.setPixel(i,j, tqRgba(r,g,b,a)); } } @@ -494,7 +494,7 @@ FindSelectionResult InlineTextBox::checkSelectionPoint(int _x, int _y, int _tx, int InlineTextBox::offsetForPoint(int _x, int &ax) const { - // Do binary search for finding out offset, saves some time for long + // Do binary search for tqfinding out offset, saves some time for long // runs. int start = 0; int end = m_len; @@ -643,7 +643,7 @@ int InlineTextBoxArray::compareItems( Item d1, Item d2 ) } // remove this once QVector::bsearch is fixed -int InlineTextBoxArray::findFirstMatching(Item d) const +int InlineTextBoxArray::tqfindFirstMatching(Item d) const { int len = count(); @@ -758,7 +758,7 @@ DOM::DOMStringImpl* RenderText::originalString() const return element() ? element()->string() : 0; } -InlineTextBox * RenderText::findInlineTextBox( int offset, int &pos, bool checkFirstLetter ) +InlineTextBox * RenderText::tqfindInlineTextBox( int offset, int &pos, bool checkFirstLetter ) { // The text boxes point to parts of the rendertext's str string // (they don't include '\n') @@ -775,7 +775,7 @@ InlineTextBox * RenderText::findInlineTextBox( int offset, int &pos, bool checkF RenderText *letterText = static_cast(firstLetter->firstChild()); //kdDebug(6040) << "lettertext: " << letterText << " minOfs: " << letterText->minOffset() << " maxOfs: " << letterText->maxOffset() << endl; if (offset >= letterText->minOffset() && offset <= letterText->maxOffset()) { - InlineTextBox *result = letterText->findInlineTextBox(offset, pos, false); + InlineTextBox *result = letterText->tqfindInlineTextBox(offset, pos, false); //kdDebug(6040) << "result: " << result << endl; if (result) return result; } @@ -927,7 +927,7 @@ void RenderText::caretPos(int offset, int flags, int &_x, int &_y, int &width, i } int pos; - InlineTextBox * s = findInlineTextBox( offset, pos, true ); + InlineTextBox * s = tqfindInlineTextBox( offset, pos, true ); RenderText *t = s->renderText(); // kdDebug(6040) << "offset="<= 0x20 && u < 0x7F) { result += c; } else { -- cgit v1.2.1