eric7/Graphics/UMLGraphicsView.py

branch
eric7
changeset 8318
962bce857696
parent 8312
800c432b34c8
child 8322
b422b4e77d19
diff -r 0c7a44af84bc -r 962bce857696 eric7/Graphics/UMLGraphicsView.py
--- a/eric7/Graphics/UMLGraphicsView.py	Sun May 16 11:43:59 2021 +0200
+++ b/eric7/Graphics/UMLGraphicsView.py	Sun May 16 20:07:24 2021 +0200
@@ -7,11 +7,12 @@
 Module implementing a subclass of E5GraphicsView for our diagrams.
 """
 
-from PyQt5.QtCore import (
+from PyQt6.QtCore import (
     pyqtSignal, Qt, QSignalMapper, QFileInfo, QEvent, QRectF
 )
-from PyQt5.QtWidgets import QGraphicsView, QAction, QToolBar, QDialog
-from PyQt5.QtPrintSupport import QPrinter, QPrintDialog
+from PyQt6.QtGui import QAction
+from PyQt6.QtWidgets import QGraphicsView, QToolBar, QDialog
+from PyQt6.QtPrintSupport import QPrinter, QPrintDialog
 
 from E5Graphics.E5GraphicsView import E5GraphicsView
 
@@ -460,7 +461,7 @@
         """
         Public slot called to show a print preview of the diagram.
         """
-        from PyQt5.QtPrintSupport import QPrintPreviewDialog
+        from PyQt6.QtPrintSupport import QPrintPreviewDialog
         
         printer = QPrinter(mode=QPrinter.PrinterMode.PrinterResolution)
         printer.setFullPage(True)

eric ide

mercurial