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

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 6716 of file qpainter.cpp.

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

Referenced by QFontEngine::alphaMapForGlyph(), QTextLine::draw(), QCommonStyle::drawComplexControl(), QCleanlooksStyle::drawComplexControl(), QCleanlooksStyle::drawControl(), QCommonStyle::drawControl(), QTextLayout::drawCursor(), QPainter::drawImage(), GLWidget::drawInstructions(), QPainter::drawPixmap(), QWindowsMobileStyle::drawPrimitive(), QCommonStyle::drawPrimitive(), QCleanlooksStyle::drawPrimitive(), QWindowsCEStyle::drawPrimitive(), QPlastiqueStyle::drawPrimitive(), NorwegianWoodStyle::drawPrimitive(), QPaintEngine::drawTextItem(), QPainter::drawTextItem(), QPainter::drawTiledPixmap(), QPicture::exec(), Q3Picture::load(), ColorItem::mouseMoveEvent(), StarRating::paint(), GraphicsWidget::paint(), DemoItem::paint(), ItemBase::paint(), QGraphicsPixmapItem::paint(), CircleItem::paint(), PixelDelegate::paint(), ShapedClock::paintEvent(), WorldTimeClock::paintEvent(), PaintWidget::paintEvent(), ColorDock::paintEvent(), RenderArea::paintEvent(), ClearButton::paintEvent(), Phonon::Gstreamer::GLRenderWidgetImplementation::paintEvent(), CircleWidget::paintEvent(), ArthurFrame::paintEvent(), EmbedWidget::paintEvent(), Window::paintEvent(), ChaseWidget::paintEvent(), AnalogClock::paintEvent(), QtGradientWidget::paintEvent(), TicTacToe::paintEvent(), Widget::paintEvent(), SearchButton::paintEvent(), SortingBox::paintEvent(), Document::paintEvent(), QtGradientStopsWidget::paintEvent(), DisplayWidget::paintEvent(), GLWidget::paintEvent(), QGraphicsWidget::paintWindowFrame(), QCleanlooksStyle::standardPixmap(), QImage::transformed(), and Bubble::updateCache().

{
#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);
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index