mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
network: Simplify scene background.
This commit is contained in:
1 parent
c3e0593137
commit
461f23058d
1 file changed
+1
-5
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user