diff options
Diffstat (limited to 'krita/ui/kis_opengl_canvas_painter.cc')
-rw-r--r-- | krita/ui/kis_opengl_canvas_painter.cc | 232 |
1 files changed, 116 insertions, 116 deletions
diff --git a/krita/ui/kis_opengl_canvas_painter.cc b/krita/ui/kis_opengl_canvas_painter.cc index 06e38997..f40ebf53 100644 --- a/krita/ui/kis_opengl_canvas_painter.cc +++ b/krita/ui/kis_opengl_canvas_painter.cc @@ -33,7 +33,7 @@ KisOpenGLCanvasPainter::KisOpenGLCanvasPainter() { } -KisOpenGLCanvasPainter::KisOpenGLCanvasPainter(QGLWidget *widget) +KisOpenGLCanvasPainter::KisOpenGLCanvasPainter(TQGLWidget *widget) : m_active(true), m_widget(widget) { prepareForDrawing(); @@ -51,7 +51,7 @@ KisOpenGLCanvasPainter::~KisOpenGLCanvasPainter() bool KisOpenGLCanvasPainter::begin(KisCanvasWidget *canvasWidget, bool /*unclipped*/) { - m_widget = dynamic_cast<QGLWidget *>(canvasWidget); + m_widget = dynamic_cast<TQGLWidget *>(canvasWidget); if (m_widget != 0) { prepareForDrawing(); @@ -75,7 +75,7 @@ void KisOpenGLCanvasPainter::prepareForDrawing() glMatrixMode(GL_TEXTURE); glLoadIdentity(); - m_window = QRect(0, 0, m_widget->width(), m_widget->height()); + m_window = TQRect(0, 0, m_widget->width(), m_widget->height()); m_viewport = m_window; updateViewTransformation(); @@ -91,7 +91,7 @@ void KisOpenGLCanvasPainter::updateViewTransformation() glMatrixMode(GL_PROJECTION); glLoadIdentity(); - // We don't set the GL viewport directly from the Qt one as the GL + // We don't set the GL viewport directly from the TQt one as the GL // has a limited size. Instead we fold it into the projection matrix. glViewport(0, 0, m_widget->width(), m_widget->height()); glOrtho(0, m_widget->width(), m_widget->height(), 0, -1, 1); @@ -138,26 +138,26 @@ void KisOpenGLCanvasPainter::restore() void KisOpenGLCanvasPainter::setPenStyle(Qt::PenStyle penStyle) { - if (penStyle == Qt::SolidLine) { + if (penStyle == TQt::SolidLine) { glDisable(GL_LINE_STIPPLE); } else { GLushort lineStipple; switch (penStyle) { - case Qt::NoPen: + case TQt::NoPen: lineStipple = 0; break; default: - case Qt::DashLine: + case TQt::DashLine: lineStipple = 0x3fff; break; - case Qt::DotLine: + case TQt::DotLine: lineStipple = 0x3333; break; - case Qt::DashDotLine: + case TQt::DashDotLine: lineStipple = 0x33ff; break; - case Qt::DashDotDotLine: + case TQt::DashDotDotLine: lineStipple = 0x333f; break; } @@ -167,31 +167,31 @@ void KisOpenGLCanvasPainter::setPenStyle(Qt::PenStyle penStyle) } } -QFontMetrics KisOpenGLCanvasPainter::fontMetrics() const +TQFontMetrics KisOpenGLCanvasPainter::fontMetrics() const { - return QFontMetrics(QFont()); + return TQFontMetrics(TQFont()); } -QFontInfo KisOpenGLCanvasPainter::fontInfo() const +TQFontInfo KisOpenGLCanvasPainter::fontInfo() const { - return QFontInfo(QFont()); + return TQFontInfo(TQFont()); } -const QFont& KisOpenGLCanvasPainter::font() const +const TQFont& KisOpenGLCanvasPainter::font() const { return m_defaultFont; } -void KisOpenGLCanvasPainter::setFont(const QFont& /*font*/) +void KisOpenGLCanvasPainter::setFont(const TQFont& /*font*/) { } -const QPen& KisOpenGLCanvasPainter::pen() const +const TQPen& KisOpenGLCanvasPainter::pen() const { return m_defaultPen; } -void KisOpenGLCanvasPainter::setPen(const QPen& pen) +void KisOpenGLCanvasPainter::setPen(const TQPen& pen) { setPenStyle(pen.style()); } @@ -201,60 +201,60 @@ void KisOpenGLCanvasPainter::setPen(Qt::PenStyle penStyle) setPenStyle(penStyle); } -void KisOpenGLCanvasPainter::setPen(const QColor& /*color*/) +void KisOpenGLCanvasPainter::setPen(const TQColor& /*color*/) { } -const QBrush& KisOpenGLCanvasPainter::brush() const +const TQBrush& KisOpenGLCanvasPainter::brush() const { return m_defaultBrush; } -void KisOpenGLCanvasPainter::setBrush(const QBrush& /*brush*/) +void KisOpenGLCanvasPainter::setBrush(const TQBrush& /*brush*/) { } -void KisOpenGLCanvasPainter::setBrush(Qt::BrushStyle /*brushStyle*/) +void KisOpenGLCanvasPainter::setBrush(TQt::BrushStyle /*brushStyle*/) { } -void KisOpenGLCanvasPainter::setBrush(const QColor& /*color*/) +void KisOpenGLCanvasPainter::setBrush(const TQColor& /*color*/) { } -QPoint KisOpenGLCanvasPainter::pos() const +TQPoint KisOpenGLCanvasPainter::pos() const { - return QPoint(); + return TQPoint(); } -const QColor& KisOpenGLCanvasPainter::backgroundColor() const +const TQColor& KisOpenGLCanvasPainter::backgroundColor() const { return m_defaultColor; } -void KisOpenGLCanvasPainter::setBackgroundColor(const QColor& /*color*/) +void KisOpenGLCanvasPainter::setBackgroundColor(const TQColor& /*color*/) { } -Qt::Qt::BGMode KisOpenGLCanvasPainter::backgroundMode() const +TQt::Qt::BGMode KisOpenGLCanvasPainter::backgroundMode() const { - return Qt::TransparentMode; + return TQt::TransparentMode; } -void KisOpenGLCanvasPainter::setBackgroundMode(Qt::Qt::BGMode /*bgMode*/) +void KisOpenGLCanvasPainter::setBackgroundMode(TQt::Qt::BGMode /*bgMode*/) { } -Qt::Qt::RasterOp KisOpenGLCanvasPainter::rasterOp() const +TQt::TQt::RasterOp KisOpenGLCanvasPainter::rasterOp() const { - return Qt::CopyROP; + return TQt::CopyROP; } -void KisOpenGLCanvasPainter::setRasterOp(Qt::RasterOp /*rasterOp*/) +void KisOpenGLCanvasPainter::setRasterOp(TQt::RasterOp /*rasterOp*/) { } -const QPoint& KisOpenGLCanvasPainter::brushOrigin() const +const TQPoint& KisOpenGLCanvasPainter::brushOrigin() const { return m_defaultBrushOrigin; } @@ -263,7 +263,7 @@ void KisOpenGLCanvasPainter::setBrushOrigin(int /*x*/, int /*y*/) { } -void KisOpenGLCanvasPainter::setBrushOrigin(const QPoint& /*origin*/) +void KisOpenGLCanvasPainter::setBrushOrigin(const TQPoint& /*origin*/) { } @@ -281,12 +281,12 @@ void KisOpenGLCanvasPainter::setViewXForm(bool /*enable*/) { } -QRect KisOpenGLCanvasPainter::window() const +TQRect KisOpenGLCanvasPainter::window() const { return m_window; } -void KisOpenGLCanvasPainter::setWindow(const QRect& r) +void KisOpenGLCanvasPainter::setWindow(const TQRect& r) { m_window = r; updateViewTransformation(); @@ -294,15 +294,15 @@ void KisOpenGLCanvasPainter::setWindow(const QRect& r) void KisOpenGLCanvasPainter::setWindow(int x, int y, int w, int h) { - setWindow(QRect(x, y, w, h)); + setWindow(TQRect(x, y, w, h)); } -QRect KisOpenGLCanvasPainter::viewport() const +TQRect KisOpenGLCanvasPainter::viewport() const { return m_viewport; } -void KisOpenGLCanvasPainter::setViewport(const QRect& r) +void KisOpenGLCanvasPainter::setViewport(const TQRect& r) { m_viewport = r; updateViewTransformation(); @@ -310,19 +310,19 @@ void KisOpenGLCanvasPainter::setViewport(const QRect& r) void KisOpenGLCanvasPainter::setViewport(int x, int y, int w, int h) { - setViewport(QRect(x, y, w, h)); + setViewport(TQRect(x, y, w, h)); } void KisOpenGLCanvasPainter::setWorldXForm(bool /*enable*/) { } -const QWMatrix& KisOpenGLCanvasPainter::worldMatrix() const +const TQWMatrix& KisOpenGLCanvasPainter::tqworldMatrix() const { return m_defaultWorldMatrix; } -void KisOpenGLCanvasPainter::setWorldMatrix(const QWMatrix& /*matrix*/, bool /*combine*/) +void KisOpenGLCanvasPainter::setWorldMatrix(const TQWMatrix& /*matrix*/, bool /*combine*/) { } @@ -366,42 +366,42 @@ double KisOpenGLCanvasPainter::translationY() const return 0; } -QPoint KisOpenGLCanvasPainter::xForm(const QPoint& point) const +TQPoint KisOpenGLCanvasPainter::xForm(const TQPoint& point) const { return point; } -QRect KisOpenGLCanvasPainter::xForm(const QRect& r) const +TQRect KisOpenGLCanvasPainter::xForm(const TQRect& r) const { return r; } -QPointArray KisOpenGLCanvasPainter::xForm(const QPointArray& pointArray) const +TQPointArray KisOpenGLCanvasPainter::xForm(const TQPointArray& pointArray) const { return pointArray; } -QPointArray KisOpenGLCanvasPainter::xForm(const QPointArray& pointArray, int /*index*/, int /*npoints*/) const +TQPointArray KisOpenGLCanvasPainter::xForm(const TQPointArray& pointArray, int /*index*/, int /*npoints*/) const { return pointArray; } -QPoint KisOpenGLCanvasPainter::xFormDev(const QPoint& point) const +TQPoint KisOpenGLCanvasPainter::xFormDev(const TQPoint& point) const { return point; } -QRect KisOpenGLCanvasPainter::xFormDev(const QRect& r) const +TQRect KisOpenGLCanvasPainter::xFormDev(const TQRect& r) const { return r; } -QPointArray KisOpenGLCanvasPainter::xFormDev(const QPointArray& pointArray) const +TQPointArray KisOpenGLCanvasPainter::xFormDev(const TQPointArray& pointArray) const { return pointArray; } -QPointArray KisOpenGLCanvasPainter::xFormDev(const QPointArray& pointArray, int /*index*/, int /*npoints*/) const +TQPointArray KisOpenGLCanvasPainter::xFormDev(const TQPointArray& pointArray, int /*index*/, int /*npoints*/) const { return pointArray; } @@ -415,20 +415,20 @@ bool KisOpenGLCanvasPainter::hasClipping() const return true; } -QRegion KisOpenGLCanvasPainter::clipRegion(QPainter::CoordinateMode /*mode*/) const +TQRegion KisOpenGLCanvasPainter::clipRegion(TQPainter::CoordinateMode /*mode*/) const { - return QRegion(); + return TQRegion(); } -void KisOpenGLCanvasPainter::setClipRect(const QRect& /*r*/, QPainter::CoordinateMode /*mode*/) +void KisOpenGLCanvasPainter::setClipRect(const TQRect& /*r*/, TQPainter::CoordinateMode /*mode*/) { } -void KisOpenGLCanvasPainter::setClipRect(int /*x*/, int /*y*/, int /*w*/, int /*h*/, QPainter::CoordinateMode /*mode*/) +void KisOpenGLCanvasPainter::setClipRect(int /*x*/, int /*y*/, int /*w*/, int /*h*/, TQPainter::CoordinateMode /*mode*/) { } -void KisOpenGLCanvasPainter::setClipRegion(const QRegion& /*rgn*/, QPainter::CoordinateMode /*mode*/) +void KisOpenGLCanvasPainter::setClipRegion(const TQRegion& /*rgn*/, TQPainter::CoordinateMode /*mode*/) { } @@ -439,12 +439,12 @@ void KisOpenGLCanvasPainter::drawPoint(int x, int y) glEnd(); } -void KisOpenGLCanvasPainter::drawPoint(const QPoint& point) +void KisOpenGLCanvasPainter::drawPoint(const TQPoint& point) { drawPoint(point.x(), point.y()); } -void KisOpenGLCanvasPainter::drawPoints(const QPointArray& pointArray, int index, int npoints) +void KisOpenGLCanvasPainter::drawPoints(const TQPointArray& pointArray, int index, int npoints) { int firstPointIndex = index; @@ -469,7 +469,7 @@ void KisOpenGLCanvasPainter::drawPoints(const QPointArray& pointArray, int index glBegin(GL_POINTS); for (int pointIndex = firstPointIndex; pointIndex <= lastPointIndex; pointIndex++) { - QPoint point = pointArray.point(pointIndex); + TQPoint point = pointArray.point(pointIndex); glVertex2i(point.x(), point.y()); } @@ -480,7 +480,7 @@ void KisOpenGLCanvasPainter::moveTo(int /*x*/, int /*y*/) { } -void KisOpenGLCanvasPainter::moveTo(const QPoint& /*point*/) +void KisOpenGLCanvasPainter::moveTo(const TQPoint& /*point*/) { } @@ -488,7 +488,7 @@ void KisOpenGLCanvasPainter::lineTo(int /*x*/, int /*y*/) { } -void KisOpenGLCanvasPainter::lineTo(const QPoint& /*point*/) +void KisOpenGLCanvasPainter::lineTo(const TQPoint& /*point*/) { } @@ -500,7 +500,7 @@ void KisOpenGLCanvasPainter::drawLine(int x1, int y1, int x2, int y2) glEnd(); } -void KisOpenGLCanvasPainter::drawLine(const QPoint& start, const QPoint& end) +void KisOpenGLCanvasPainter::drawLine(const TQPoint& start, const TQPoint& end) { drawLine(start.x(), start.y(), end.x(), end.y()); } @@ -524,7 +524,7 @@ void KisOpenGLCanvasPainter::drawRect(int x, int y, int w, int h) glEnd(); } -void KisOpenGLCanvasPainter::drawRect(const QRect& r) +void KisOpenGLCanvasPainter::drawRect(const TQRect& r) { drawRect(r.x(), r.y(), r.width(), r.height()); } @@ -533,15 +533,15 @@ void KisOpenGLCanvasPainter::drawWinFocusRect(int /*x*/, int /*y*/, int /*w*/, i { } -void KisOpenGLCanvasPainter::drawWinFocusRect(int /*x*/, int /*y*/, int /*w*/, int /*h*/, const QColor& /*bgColor*/) +void KisOpenGLCanvasPainter::drawWinFocusRect(int /*x*/, int /*y*/, int /*w*/, int /*h*/, const TQColor& /*bgColor*/) { } -void KisOpenGLCanvasPainter::drawWinFocusRect(const QRect& /*r*/) +void KisOpenGLCanvasPainter::drawWinFocusRect(const TQRect& /*r*/) { } -void KisOpenGLCanvasPainter::drawWinFocusRect(const QRect& /*r*/, const QColor& /*bgColor*/) +void KisOpenGLCanvasPainter::drawWinFocusRect(const TQRect& /*r*/, const TQColor& /*bgColor*/) { } @@ -564,7 +564,7 @@ void KisOpenGLCanvasPainter::drawRoundRect(int x, int y, int w, int h, int /*xRn glEnd(); } -void KisOpenGLCanvasPainter::drawRoundRect(const QRect& r, int /*xRnd*/, int /*yRnd*/) +void KisOpenGLCanvasPainter::drawRoundRect(const TQRect& r, int /*xRnd*/, int /*yRnd*/) { drawRoundRect(r.x(), r.y(), r.width(), r.height()); } @@ -573,22 +573,22 @@ void KisOpenGLCanvasPainter::drawRoundRect(const QRect& r, int /*xRnd*/, int /*y // { // } // -// void KisOpenGLCanvasPainter::drawRoundRect(const QRect& /*r*/, int /*xRnd*/, int /*yRnd*/) +// void KisOpenGLCanvasPainter::drawRoundRect(const TQRect& /*r*/, int /*xRnd*/, int /*yRnd*/) // { // } void KisOpenGLCanvasPainter::drawEllipse(int x, int y, int w, int h) { - QRect r(x, y, w, h); + TQRect r(x, y, w, h); r = r.normalize(); - QPointArray points; + TQPointArray points; points.makeEllipse(r.x(), r.y(), r.width(), r.height()); drawPoints(points); } -void KisOpenGLCanvasPainter::drawEllipse(const QRect& r) +void KisOpenGLCanvasPainter::drawEllipse(const TQRect& r) { drawEllipse(r.x(), r.y(), r.width(), r.height()); } @@ -597,7 +597,7 @@ void KisOpenGLCanvasPainter::drawArc(int /*x*/, int /*y*/, int /*w*/, int /*h*/, { } -void KisOpenGLCanvasPainter::drawArc(const QRect& /*r*/, int /*a*/, int /*alen*/) +void KisOpenGLCanvasPainter::drawArc(const TQRect& /*r*/, int /*a*/, int /*alen*/) { } @@ -605,7 +605,7 @@ void KisOpenGLCanvasPainter::drawPie(int /*x*/, int /*y*/, int /*w*/, int /*h*/, { } -void KisOpenGLCanvasPainter::drawPie(const QRect& /*r*/, int /*a*/, int /*alen*/) +void KisOpenGLCanvasPainter::drawPie(const TQRect& /*r*/, int /*a*/, int /*alen*/) { } @@ -613,15 +613,15 @@ void KisOpenGLCanvasPainter::drawChord(int /*x*/, int /*y*/, int /*w*/, int /*h* { } -void KisOpenGLCanvasPainter::drawChord(const QRect& /*r*/, int /*a*/, int /*alen*/) +void KisOpenGLCanvasPainter::drawChord(const TQRect& /*r*/, int /*a*/, int /*alen*/) { } -void KisOpenGLCanvasPainter::drawLineSegments(const QPointArray& /*pointArray*/, int /*index*/, int /*nlines*/) +void KisOpenGLCanvasPainter::drawLineSegments(const TQPointArray& /*pointArray*/, int /*index*/, int /*nlines*/) { } -void KisOpenGLCanvasPainter::drawPolyline(const QPointArray& pointArray, int index, int npoints) +void KisOpenGLCanvasPainter::drawPolyline(const TQPointArray& pointArray, int index, int npoints) { int firstPointIndex = index; @@ -650,24 +650,24 @@ void KisOpenGLCanvasPainter::drawPolyline(const QPointArray& pointArray, int ind glBegin(GL_LINES); for (int pointIndex = firstPointIndex; pointIndex <= lastPointIndex; pointIndex++) { - QPoint point = pointArray.point(pointIndex); + TQPoint point = pointArray.point(pointIndex); glVertex2i(point.x(), point.y()); } glEnd(); } -void KisOpenGLCanvasPainter::drawPolygon(const QPointArray& /*pointArray*/, bool /*winding*/, int /*index*/, int /*npoints*/) +void KisOpenGLCanvasPainter::drawPolygon(const TQPointArray& /*pointArray*/, bool /*winding*/, int /*index*/, int /*npoints*/) { } -void KisOpenGLCanvasPainter::drawConvexPolygon(const QPointArray& /*pointArray*/, int /*index*/, int /*npoints*/) +void KisOpenGLCanvasPainter::drawConvexPolygon(const TQPointArray& /*pointArray*/, int /*index*/, int /*npoints*/) { } -QPoint midpoint (const QPoint& P1, const QPoint& P2) +TQPoint midpoint (const TQPoint& P1, const TQPoint& P2) { - QPoint temp; + TQPoint temp; temp.setX((P1.x()+P2.x())/2); temp.setY((P1.y()+P2.y())/2); return temp; @@ -675,16 +675,16 @@ QPoint midpoint (const QPoint& P1, const QPoint& P2) #define MAX_LEVEL 5 -void recursiveCurve (const QPoint& P1, const QPoint& P2, const QPoint& P3, - const QPoint& P4, int level, QValueList<QPoint>& dest) +void recursiveCurve (const TQPoint& P1, const TQPoint& P2, const TQPoint& P3, + const TQPoint& P4, int level, TQValueList<TQPoint>& dest) { if (level > MAX_LEVEL) { dest.append(midpoint(P1,P4)); return; } - QPoint L1, L2, L3, L4; - QPoint H, R1, R2, R3, R4; + TQPoint L1, L2, L3, L4; + TQPoint H, R1, R2, R3, R4; L1 = P1; L2 = midpoint(P1, P2); @@ -699,10 +699,10 @@ void recursiveCurve (const QPoint& P1, const QPoint& P2, const QPoint& P3, recursiveCurve(R1, R2, R3, R4, level + 1, dest); } -void KisOpenGLCanvasPainter::drawCubicBezier(const QPointArray& pointArray, int index) +void KisOpenGLCanvasPainter::drawCubicBezier(const TQPointArray& pointArray, int index) { - QPoint P1, P2, P3, P4; - QValueList<QPoint> dest; + TQPoint P1, P2, P3, P4; + TQValueList<TQPoint> dest; P1 = pointArray[index++]; P2 = pointArray[index++]; P3 = pointArray[index++]; @@ -713,8 +713,8 @@ void KisOpenGLCanvasPainter::drawCubicBezier(const QPointArray& pointArray, int glBegin(GL_LINE_STRIP); glVertex2i(P1.x(), P1.y()); - for (QValueList<QPoint>::iterator it = dest.begin(); it != dest.end(); it++) { - QPoint point = (*it); + for (TQValueList<TQPoint>::iterator it = dest.begin(); it != dest.end(); it++) { + TQPoint point = (*it); glVertex2i(point.x(), point.y()); } glVertex2i(P4.x(), P4.y()); @@ -722,57 +722,57 @@ void KisOpenGLCanvasPainter::drawCubicBezier(const QPointArray& pointArray, int glEnd(); } -void KisOpenGLCanvasPainter::drawPixmap(int /*x*/, int /*y*/, const QPixmap& /*pixmap*/, int /*sx*/, int /*sy*/, int /*sw*/, int /*sh*/) +void KisOpenGLCanvasPainter::drawPixmap(int /*x*/, int /*y*/, const TQPixmap& /*pixmap*/, int /*sx*/, int /*sy*/, int /*sw*/, int /*sh*/) { } -void KisOpenGLCanvasPainter::drawPixmap(const QPoint& /*point*/, const QPixmap& /*pixmap*/, const QRect& /*sr*/) +void KisOpenGLCanvasPainter::drawPixmap(const TQPoint& /*point*/, const TQPixmap& /*pixmap*/, const TQRect& /*sr*/) { } -void KisOpenGLCanvasPainter::drawPixmap(const QPoint& /*point*/, const QPixmap& /*pixmap*/) +void KisOpenGLCanvasPainter::drawPixmap(const TQPoint& /*point*/, const TQPixmap& /*pixmap*/) { } -void KisOpenGLCanvasPainter::drawPixmap(const QRect& /*r*/, const QPixmap& /*pixmap*/) +void KisOpenGLCanvasPainter::drawPixmap(const TQRect& /*r*/, const TQPixmap& /*pixmap*/) { } -void KisOpenGLCanvasPainter::drawImage(int /*x*/, int /*y*/, const QImage& /*image*/, int /*sx*/, int /*sy*/, int /*sw*/, int /*sh*/, int /*conversionFlags*/) +void KisOpenGLCanvasPainter::drawImage(int /*x*/, int /*y*/, const TQImage& /*image*/, int /*sx*/, int /*sy*/, int /*sw*/, int /*sh*/, int /*conversionFlags*/) { } -void KisOpenGLCanvasPainter::drawImage(const QPoint& /*point*/, const QImage& /*image*/, const QRect& /*sr*/, int /*conversionFlags*/) +void KisOpenGLCanvasPainter::drawImage(const TQPoint& /*point*/, const TQImage& /*image*/, const TQRect& /*sr*/, int /*conversionFlags*/) { } -void KisOpenGLCanvasPainter::drawImage(const QPoint& /*point*/, const QImage& /*image*/, int /*conversion_flags*/) +void KisOpenGLCanvasPainter::drawImage(const TQPoint& /*point*/, const TQImage& /*image*/, int /*conversion_flags*/) { } -void KisOpenGLCanvasPainter::drawImage(const QRect& /*r*/, const QImage& /*image*/) +void KisOpenGLCanvasPainter::drawImage(const TQRect& /*r*/, const TQImage& /*image*/) { } -void KisOpenGLCanvasPainter::drawTiledPixmap(int /*x*/, int /*y*/, int /*w*/, int /*h*/, const QPixmap& /*pixmap*/, int /*sx*/, int /*sy*/) +void KisOpenGLCanvasPainter::drawTiledPixmap(int /*x*/, int /*y*/, int /*w*/, int /*h*/, const TQPixmap& /*pixmap*/, int /*sx*/, int /*sy*/) { } -void KisOpenGLCanvasPainter::drawTiledPixmap(const QRect& /*r*/, const QPixmap& /*pixmap*/, const QPoint& /*point*/) +void KisOpenGLCanvasPainter::drawTiledPixmap(const TQRect& /*r*/, const TQPixmap& /*pixmap*/, const TQPoint& /*point*/) { } -void KisOpenGLCanvasPainter::drawTiledPixmap(const QRect& /*r*/, const QPixmap& /*pixmap*/) +void KisOpenGLCanvasPainter::drawTiledPixmap(const TQRect& /*r*/, const TQPixmap& /*pixmap*/) { } -void KisOpenGLCanvasPainter::fillRect(int x, int y, int w, int h, const QBrush& /*brush*/) +void KisOpenGLCanvasPainter::fillRect(int x, int y, int w, int h, const TQBrush& /*brush*/) { // XXX: Set brush glRecti(x, y, x + w, y + h); } -void KisOpenGLCanvasPainter::fillRect(const QRect& r, const QBrush& brush) +void KisOpenGLCanvasPainter::fillRect(const TQRect& r, const TQBrush& brush) { fillRect(r.x(), r.y(), r.width(), r.height(), brush); } @@ -781,50 +781,50 @@ void KisOpenGLCanvasPainter::eraseRect(int /*x*/, int /*y*/, int /*w*/, int /*h* { } -void KisOpenGLCanvasPainter::eraseRect(const QRect& /*r*/) +void KisOpenGLCanvasPainter::eraseRect(const TQRect& /*r*/) { } -void KisOpenGLCanvasPainter::drawText(int /*x*/, int /*y*/, const QString& /*text*/, int /*len*/, QPainter::TextDirection /*dir*/) +void KisOpenGLCanvasPainter::drawText(int /*x*/, int /*y*/, const TQString& /*text*/, int /*len*/, TQPainter::TextDirection /*dir*/) { } -void KisOpenGLCanvasPainter::drawText(const QPoint& /*point*/, const QString& /*text*/, int /*len*/, QPainter::TextDirection /*dir*/) +void KisOpenGLCanvasPainter::drawText(const TQPoint& /*point*/, const TQString& /*text*/, int /*len*/, TQPainter::TextDirection /*dir*/) { } -void KisOpenGLCanvasPainter::drawText(int /*x*/, int /*y*/, const QString& /*text*/, int /*pos*/, int /*len*/, QPainter::TextDirection /*dir*/) +void KisOpenGLCanvasPainter::drawText(int /*x*/, int /*y*/, const TQString& /*text*/, int /*pos*/, int /*len*/, TQPainter::TextDirection /*dir*/) { } -void KisOpenGLCanvasPainter::drawText(const QPoint& /*point*/, const QString& /*text*/, int /*pos*/, int /*len*/, QPainter::TextDirection /*dir*/) +void KisOpenGLCanvasPainter::drawText(const TQPoint& /*point*/, const TQString& /*text*/, int /*pos*/, int /*len*/, TQPainter::TextDirection /*dir*/) { } -void KisOpenGLCanvasPainter::drawText(int /*x*/, int /*y*/, int /*w*/, int /*h*/, int /*flags*/, const QString& /*text*/, int /*len*/, QRect */*br*/, QTextParag **/*intern*/) +void KisOpenGLCanvasPainter::drawText(int /*x*/, int /*y*/, int /*w*/, int /*h*/, int /*flags*/, const TQString& /*text*/, int /*len*/, TQRect */*br*/, TQTextParag **/*intern*/) { } -void KisOpenGLCanvasPainter::drawText(const QRect& /*r*/, int /*flags*/, const QString& /*text*/, int /*len*/, QRect */*br*/, QTextParag **/*intern*/) +void KisOpenGLCanvasPainter::drawText(const TQRect& /*r*/, int /*flags*/, const TQString& /*text*/, int /*len*/, TQRect */*br*/, TQTextParag **/*intern*/) { } -void KisOpenGLCanvasPainter::drawTextItem(int /*x*/, int /*y*/, const QTextItem& /*ti*/, int /*textflags*/) +void KisOpenGLCanvasPainter::tqdrawTextItem(int /*x*/, int /*y*/, const TQTextItem& /*ti*/, int /*textflags*/) { } -void KisOpenGLCanvasPainter::drawTextItem(const QPoint& /*p*/, const QTextItem& /*ti*/, int /*textflags*/) +void KisOpenGLCanvasPainter::tqdrawTextItem(const TQPoint& /*p*/, const TQTextItem& /*ti*/, int /*textflags*/) { } -QRect KisOpenGLCanvasPainter::boundingRect(int /*x*/, int /*y*/, int /*w*/, int /*h*/, int /*flags*/, const QString& /*text*/, int /*len*/, QTextParag **/*intern*/) +TQRect KisOpenGLCanvasPainter::boundingRect(int /*x*/, int /*y*/, int /*w*/, int /*h*/, int /*flags*/, const TQString& /*text*/, int /*len*/, TQTextParag **/*intern*/) { - return QRect(); + return TQRect(); } -QRect KisOpenGLCanvasPainter::boundingRect(const QRect& /*r*/, int /*flags*/, const QString& /*text*/, int /*len*/, QTextParag **/*intern*/) +TQRect KisOpenGLCanvasPainter::boundingRect(const TQRect& /*r*/, int /*flags*/, const TQString& /*text*/, int /*len*/, TQTextParag **/*intern*/) { - return QRect(); + return TQRect(); } int KisOpenGLCanvasPainter::tabStops() const |