mirror of https://gitlab.com/pamhyr/pamhyr2
network: Change color.
parent
77736b0885
commit
37a311b303
|
|
@ -52,7 +52,7 @@ class NodeItem(QGraphicsItem):
|
||||||
|
|
||||||
# Select color in function of node position in graph and
|
# Select color in function of node position in graph and
|
||||||
# status
|
# status
|
||||||
color = Qt.black
|
color = Qt.darkBlue
|
||||||
if self.graph.selected_new_edge_src_node() == self:
|
if self.graph.selected_new_edge_src_node() == self:
|
||||||
color = Qt.darkRed
|
color = Qt.darkRed
|
||||||
elif self.graph.selected_item() == self:
|
elif self.graph.selected_item() == self:
|
||||||
|
|
@ -139,7 +139,7 @@ class EdgeItem(QGraphicsItem):
|
||||||
return
|
return
|
||||||
|
|
||||||
# Select color
|
# Select color
|
||||||
color = Qt.black
|
color = Qt.darkBlue
|
||||||
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:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue