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

void QFont::setPointSize ( int  pointSize  ) 

Sets the point size to pointSize. The point size must be greater than zero.

See also:
pointSize() setPointSizeF()

Definition at line 613 of file qfont.cpp.

References detach().

Referenced by QPlastiqueStyle::drawControl(), Q3StyleSheet::scaleFont(), QAbstractFormBuilder::toVariant(), QTextEdit::zoomIn(), Q3TextEdit::zoomIn(), QTextEdit::zoomOut(), Q3TextEdit::zoomOut(), and Q3TextEdit::zoomTo().

{
    Q_ASSERT_X (pointSize > 0, "QFont::setPointSize", "point size must be greater than 0");

    detach();

    d->request.pointSize = qreal(pointSize);
    d->request.pixelSize = -1;

    resolve_mask |= QFontPrivate::Size;
}


Generated by  Doxygen 1.6.0   Back to index