Skip to content

Commit

Permalink
restore painter after drawing branching arrows
Browse files Browse the repository at this point in the history
the painter still has the changed color will turn all other text in
the same color
  • Loading branch information
lievenhey committed Oct 30, 2023
1 parent f465b2c commit 32fa91a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/resultsdisassemblypage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,11 @@ class BranchDelegate : public QStyledItemDelegate

auto pen = QPen(option.palette.color(QPalette::Link), 1);
pen.setCosmetic(true);
const auto oldPen = painter->pen();
painter->setPen(pen);

painter->drawLines(lines.constData(), lines.size());
painter->setPen(oldPen);
}

private:
Expand Down

0 comments on commit 32fa91a

Please sign in to comment.