From 32fa91a05c06c72aeee01cf947dcf4b08fa28b26 Mon Sep 17 00:00:00 2001 From: Lieven Hey Date: Tue, 24 Oct 2023 17:45:34 +0200 Subject: [PATCH] restore painter after drawing branching arrows the painter still has the changed color will turn all other text in the same color --- src/resultsdisassemblypage.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/resultsdisassemblypage.cpp b/src/resultsdisassemblypage.cpp index 8f98db35..1fc26bc9 100644 --- a/src/resultsdisassemblypage.cpp +++ b/src/resultsdisassemblypage.cpp @@ -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: