network: Simplify scene background.

mesh
Pierre-Antoine Rouby 2023-03-29 13:59:29 +02:00
parent c3e0593137
commit 461f23058d
1 changed files with 1 additions and 5 deletions

View File

@ -573,11 +573,7 @@ class GraphWidget(QGraphicsView):
def drawBackground(self, painter, rect):
sceneRect = self.sceneRect()
gradient = QLinearGradient(sceneRect.topLeft(), sceneRect.bottomRight())
gradient.setColorAt(0, Qt.lightGray)
gradient.setColorAt(1, Qt.lightGray)
painter.fillRect(rect.intersected(sceneRect), QBrush(gradient))
painter.fillRect(rect.intersected(sceneRect), QBrush(Qt.lightGray))
painter.setBrush(Qt.NoBrush)
painter.drawRect(sceneRect)