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

void QFont::setItalic ( bool  enable  )  [inline]

Sets the style() of the font to QFont::StyleItalic if enable is true; otherwise the style is set to QFont::StyleNormal.

See also:
italic() QFontInfo

Definition at line 327 of file qfont.h.

References setStyle().

Referenced by fromString(), and MainWindow::handleFontChange().

                                   {
    setStyle(b ? StyleItalic : StyleNormal);
}


Generated by  Doxygen 1.6.0   Back to index