diff options
author | Adrian Herrmann <adrian.herrmann@qt.io> | 2023-12-05 13:10:16 +0100 |
---|---|---|
committer | Adrian Herrmann <adrian.herrmann@qt.io> | 2023-12-06 15:04:33 +0100 |
commit | dcf38e34858ee74857a1cc431b12a3b88865cade (patch) | |
tree | b49d3bab810ad590ec15dc1cbf5a9566c1472b23 /examples/charts/callout/callout.py | |
parent | 55015346f4107ca3383e7ab54be38e72ec8b07d1 (diff) |
Examples: Fix a number of flake8 errors (part 3)
Fix unused variable errors and other miscellaneous errors not included
in parts 1 and 2.
Pick-to: 6.6
Change-Id: Ifb4336cd4ecdd62928042e1011d4430a461efc7c
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'examples/charts/callout/callout.py')
-rw-r--r-- | examples/charts/callout/callout.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/charts/callout/callout.py b/examples/charts/callout/callout.py index 59a1c3fad..622938d16 100644 --- a/examples/charts/callout/callout.py +++ b/examples/charts/callout/callout.py @@ -90,7 +90,7 @@ class Callout(QGraphicsItem): def mouseMoveEvent(self, event): if event.buttons() & Qt.LeftButton: - self.setPos(mapToParent( + self.setPos(self.mapToParent( event.pos() - event.buttonDownPos(Qt.LeftButton))) event.setAccepted(True) else: |