summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
60dde7f)
This is better than nothing.
format->setFontItalic(true);
else if (prop == "underline")
format->setFontUnderline(true);
format->setFontItalic(true);
else if (prop == "underline")
format->setFontUnderline(true);
- // Oblique is not a property supported by QTextCharFormat
- //else if(prop == "oblique")
- // format->setStyle(QFont::StyleOblique);
+ else if(prop == "oblique")
+ // Oblique is not a property supported by QTextCharFormat
+ format->setFontItalic(true);
else if (prop == "bold")
format->setFontWeight(QFont::Bold);
else { // number
else if (prop == "bold")
format->setFontWeight(QFont::Bold);
else { // number
format->setFontUnderline(true);
else if (value == "strikethrough")
format->setFontStrikeOut(true);
format->setFontUnderline(true);
else if (value == "strikethrough")
format->setFontStrikeOut(true);
- // Oblique is not a property supported by QTextCharFormat
- //else if(value == "oblique")
- // format->setStyle(QFont::StyleOblique);
+ else if(value == "oblique")
+ // Oblique is not a property supported by QTextCharFormat
+ format->setFontItalic(true);
else {
qWarning() << Q_FUNC_INFO << tr("Invalid font style specification: %1").arg(value);
}
else {
qWarning() << Q_FUNC_INFO << tr("Invalid font style specification: %1").arg(value);
}