Logo Search packages:      
Sourcecode: qt4-x11 version File versions

void QPainter::scale ( qreal  sx,
qreal  sy 
) [inherited]

Scales the coordinate system by ({sx}, {sy}).

See also:
setWorldMatrix() {QPainter::Coordinate Transformations}{Coordinate Transformations}

Definition at line 2898 of file qpainter.cpp.

Referenced by QGraphicsItem::boundingRegion(), QPainter::drawImage(), QPainter::drawPixmap(), StarRating::paint(), ShapedClock::paintEvent(), WorldTimeClock::paintEvent(), AnalogClock::paintEvent(), MandelbrotWidget::paintEvent(), QLabel::paintEvent(), QTextDocument::print(), QWebFrame::print(), and RenderArea::transformPainter().

{
#ifdef QT_DEBUG_DRAW
    if (qt_show_painter_debug_output)
        printf("QPainter::scale(), sx=%f, sy=%f\n", sx, sy);
#endif
    Q_D(QPainter);
    if (!d->engine) {
        qWarning("QPainter::scale: Painter not active");
        return;
    }

    d->state->worldMatrix.scale(sx,sy);
    d->state->WxF = true;
    d->updateMatrix();
}


Generated by  Doxygen 1.6.0   Back to index