mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Network: Change selected reach color and minor change.
This commit is contained in:
1 parent
ccb55ff4e1
commit
8ce5a4d215
1 file changed
+6
-3
@@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user