Commit 461f2305 authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

network: Simplify scene background.

Showing with 1 addition and 5 deletions
+1 -5
...@@ -573,11 +573,7 @@ class GraphWidget(QGraphicsView): ...@@ -573,11 +573,7 @@ class GraphWidget(QGraphicsView):
def drawBackground(self, painter, rect): def drawBackground(self, painter, rect):
sceneRect = self.sceneRect() sceneRect = self.sceneRect()
painter.fillRect(rect.intersected(sceneRect), QBrush(Qt.lightGray))
gradient = QLinearGradient(sceneRect.topLeft(), sceneRect.bottomRight())
gradient.setColorAt(0, Qt.lightGray)
gradient.setColorAt(1, Qt.lightGray)
painter.fillRect(rect.intersected(sceneRect), QBrush(gradient))
painter.setBrush(Qt.NoBrush) painter.setBrush(Qt.NoBrush)
painter.drawRect(sceneRect) painter.drawRect(sceneRect)
......
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