diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-08-18 15:44:52 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-08-24 12:58:38 +0200 |
| commit | ebfaceedf7413ce70e6ae411c821e6c3e68aa37f (patch) | |
| tree | 823dfbe6faa238345f18f1af2ab92e4d620dcd84 /examples/widgets/codeeditor | |
| parent | 5c37a8c9ffea848f4115e3b89f50bddc4ea4a6de (diff) | |
Examples: Add some missing slot decorators
As unearthed by the warnings added by the logging category.
As a drive-by, fix some imports.
Pick-to: 6.3 6.2
Task-number: PYSIDE-2033
Change-Id: I3812c705b60eb7be744c3532fcfb0e4024763885
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'examples/widgets/codeeditor')
| -rw-r--r-- | examples/widgets/codeeditor/codeeditor.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/widgets/codeeditor/codeeditor.py b/examples/widgets/codeeditor/codeeditor.py index 635dcb7a8..22f0b685b 100644 --- a/examples/widgets/codeeditor/codeeditor.py +++ b/examples/widgets/codeeditor/codeeditor.py @@ -69,11 +69,11 @@ class CodeEditor(QPlainTextEdit): bottom = top + self.blockBoundingRect(block).height() block_number += 1 - @Slot() + @Slot(int) def update_line_number_area_width(self, newBlockCount): self.setViewportMargins(self.line_number_area_width(), 0, 0, 0) - @Slot() + @Slot(QRect, int) def update_line_number_area(self, rect, dy): if dy: self.line_number_area.scroll(0, dy) |
