Skip to content

Commit 6742221

Browse files
committed
Fixed QPrinter.setOrientation deprecation issue
1 parent 2eb2c34 commit 6742221

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

qwt/tests/test_bodedemo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def print_(self, unattended=False):
251251
printer = QPrinter(mode)
252252

253253
printer.setCreator("Bode example")
254-
printer.setOrientation(QPrinter.Landscape)
254+
printer.setPageOrientation(QPrinter.Landscape)
255255
printer.setColorMode(QPrinter.Color)
256256

257257
docName = str(self.plot.title().text())

0 commit comments

Comments
 (0)