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

void QFont::setStyleStrategy ( StyleStrategy  s )

Sets the style strategy for the font to s.

See also:
QFont::StyleStrategy

Definition at line 1336 of file qfont.cpp.

References detach().

Referenced by QGLContext::generateFontDisplayLists(), BasicToolsPlugin::generateShape(), Chip::paint(), and CharacterWidget::updateStyle().

{
    detach();

    if ((resolve_mask & QFont::StyleStrategyResolved) &&
         s == (StyleStrategy)d->request.styleStrategy)
        return;

    d->request.styleStrategy = s;
    resolve_mask |= QFont::StyleStrategyResolved;
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index