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

void QTextCharFormat::setFontWeight ( int  weight  )  [inline, inherited]

Sets the text format's font weight to weight.

See also:
setFont(), QFont::Weight

Definition at line 389 of file qtextformat.h.

References QTextFormat::setProperty().

Referenced by MainWindow::createLetter(), Highlighter::Highlighter(), MainWindow::insertCalendar(), MainWindow::newLetter(), Window::reformatHeaders(), QTextCharFormat::setFont(), and QTextEdit::setFontWeight().

    { if (weight == QFont::Normal) weight = 0; setProperty(FontWeight, weight); }


Generated by  Doxygen 1.6.0   Back to index