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

void QPainter::setRenderHint ( RenderHint  hint,
bool  on = true 
) [inherited]

Sets the given render hint on the painter if on is true; otherwise clears the render hint.

See also:
setRenderHints(), renderHints(), {QPainter::Rendering Quality}{Rendering Quality}

Definition at line 6690 of file qpainter.cpp.

References QPainter::setRenderHints(), and QByteArray::toInt().

Referenced by QTextLine::draw(), QCommonStyle::drawComplexControl(), QCleanlooksStyle::drawComplexControl(), QCleanlooksStyle::drawControl(), QCommonStyle::drawControl(), QTextLayout::drawCursor(), QPainter::drawImage(), GLWidget::drawInstructions(), QPainter::drawPixmap(), QCommonStyle::drawPrimitive(), QCleanlooksStyle::drawPrimitive(), QPlastiqueStyle::drawPrimitive(), NorwegianWoodStyle::drawPrimitive(), QPaintEngine::drawTextItem(), QPainter::drawTextItem(), QPainter::drawTiledPixmap(), QPicture::exec(), Q3Picture::load(), StarRating::paint(), QGraphicsPixmapItem::paint(), PixelDelegate::paint(), ShapedClock::paintEvent(), RenderArea::paintEvent(), WorldTimeClock::paintEvent(), CircleWidget::paintEvent(), Window::paintEvent(), AnalogClock::paintEvent(), TicTacToe::paintEvent(), Document::paintEvent(), SortingBox::paintEvent(), GLWidget::paintEvent(), QGraphicsWidget::paintWindowFrame(), QCleanlooksStyle::standardPixmap(), and QImage::transformed().

{
#ifdef QT_DEBUG_DRAW
    if (qt_show_painter_debug_output)
        printf("QPainter::setRenderHint: hint=%x, %s\n", hint, on ? "on" : "off");
#endif

#ifndef QT_NO_DEBUG
    static const bool antialiasingDisabled = qgetenv("QT_NO_ANTIALIASING").toInt();
    if (hint == QPainter::Antialiasing && antialiasingDisabled)
        return;
#endif

    setRenderHints(hint, on);
}


Generated by  Doxygen 1.6.0   Back to index