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 will turn all other text in
the same color
  • Loading branch information
lievenhey committed Oct 26, 2023
1 parent f8940e1 commit 81a7e60
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 @@ -177,9 +177,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 81a7e60

Please sign in to comment.