Commit 8ce5a4d2 authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

Network: Change selected reach color and minor change.

Showing with 6 additions and 3 deletions
+6 -3
...@@ -178,12 +178,15 @@ class EdgeItem(QGraphicsItem): ...@@ -178,12 +178,15 @@ class EdgeItem(QGraphicsItem):
if self.graph.selected_item() == self: if self.graph.selected_item() == self:
color = Qt.red color = Qt.red
elif self.graph.current_edge() == self: elif self.graph.current_edge() == self:
color = Qt.black color = Qt.blue
elif not self.graph.graph.is_enable_edge(self.edge): elif not self.graph.graph.is_enable_edge(self.edge):
color = Qt.darkGray color = Qt.darkGray
painter.setPen(QPen(color, 2, Qt.SolidLine, Qt.RoundCap, painter.setPen(
Qt.RoundJoin)) QPen(
color, 2, Qt.SolidLine, Qt.RoundCap, Qt.RoundJoin
)
)
# Draw the line # Draw the line
painter.drawLine(line) painter.drawLine(line)
......
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