aboutsummaryrefslogtreecommitdiffstats
path: root/examples/widgets/codeeditor/codeeditor.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/widgets/codeeditor/codeeditor.py')
-rw-r--r--examples/widgets/codeeditor/codeeditor.py4
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)