/*! * Set the format properties from the given \a font. */ void Format::setFont(const QFont &font) { setFontName(font.family()); setFontSize(font.pointSize()); setFontBold(font.bold()); setFontItalic(font.italic()); setFontUnderline(font.underline() ? FontUnderlineSingle : FontUnderlineNone); setFontStrikeOut(font.strikeOut()); }
void SimpleRichTextEdit::toggleFontStrikeOut() { setFontStrikeOut(!fontStrikeOut()); }