Skip to content

Commit 086bcf2

Browse files
committed
Tutorial: Eliminate redundant drawPath()
1 parent cb91cbe commit 086bcf2

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/windows/views/tutorial.py

-4
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ def paintEvent(self, event, *args):
4747
painter.setRenderHint(QPainter.Antialiasing)
4848
frameColor = QColor("#53a0ed")
4949

50-
5150
painter.setPen(QPen(frameColor, 2))
5251
painter.setBrush(self.palette().color(QPalette.Window))
5352
painter.drawRoundedRect(QRectF(31, 0, self.width() - 31, self.height()), 10, 10)
@@ -60,10 +59,7 @@ def paintEvent(self, event, *args):
6059
path.lineTo(31, 35 - arrow_height)
6160
path.lineTo(31, (35 - arrow_height) + (arrow_height * 2))
6261
path.lineTo(0, 35)
63-
painter.setPen(Qt.NoPen)
64-
painter.setBrush(frameColor)
6562
painter.fillPath(path, frameColor)
66-
painter.drawPath(path)
6763

6864
def checkbox_metrics_callback(self, state):
6965
""" Callback for error and anonymous usage checkbox"""

0 commit comments

Comments
 (0)