Commit 5a02f5ad authored by Ahmad Samir's avatar Ahmad Samir Committed by Kurt Hindenburg
Browse files

Minor clean-up

parent 5a614549
Pipeline #169044 passed with stage
in 2 minutes and 59 seconds
......@@ -605,8 +605,13 @@ void TerminalPainter::drawCharacters(QPainter &painter,
QFont currentFont = painter.font();
const bool isCurrentBold = currentFont.weight() >= boldWeight;
if (isCurrentBold != useBold || currentFont.underline() != useUnderline || currentFont.italic() != useItalic || currentFont.strikeOut() != useStrikeOut
|| currentFont.overline() != useOverline) {
// clang-format off
if (isCurrentBold != useBold
|| currentFont.underline() != useUnderline
|| currentFont.italic() != useItalic
|| currentFont.strikeOut() != useStrikeOut
|| currentFont.overline() != useOverline)
{ // clang-format on
currentFont.setWeight(useBold ? boldWeight : normalWeight);
currentFont.setUnderline(useUnderline);
currentFont.setItalic(useItalic);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment