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

void QPainter::setRenderHints ( RenderHints  hints,
bool  on = true 
) [inherited]

Since:
4.2
Sets the given render hints on the painter if on is true; otherwise clears the render hints.

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

Definition at line 6716 of file qpainter.cpp.

Referenced by QGraphicsItem::boundingRegion(), QGraphicsProxyWidget::paint(), QGraphicsView::paintEvent(), and QPainter::setRenderHint().

{
    Q_D(QPainter);

    if (!d->engine) {
        qWarning("QPainter::setRenderHint: Painter must be active to set rendering hints");
        return;
    }

    if (on)
        d->state->renderHints |= hints;
    else
        d->state->renderHints &= ~hints;

    if (d->extended)
        d->extended->renderHintsChanged();
    else
        d->state->dirtyFlags |= QPaintEngine::DirtyHints;
}


Generated by  Doxygen 1.6.0   Back to index