eric6/E5Gui/E5PassivePopup.py

changeset 8143
2c730d5fd177
parent 7945
76daafe10009
child 8218
7c09585bd960
--- a/eric6/E5Gui/E5PassivePopup.py	Mon Mar 01 17:48:43 2021 +0100
+++ b/eric6/E5Gui/E5PassivePopup.py	Tue Mar 02 17:17:09 2021 +0100
@@ -41,7 +41,7 @@
         self.__fixedPosition = QPoint()
         
         self.setWindowFlags(POPUP_FLAGS)
-        self.setFrameStyle(QFrame.Box | QFrame.Plain)
+        self.setFrameStyle(QFrame.Shape.Box | QFrame.Shadow.Plain)
         self.setLineWidth(2)
         self.__hideTimer.timeout.connect(self.hide)
         self.clicked.connect(self.hide)
@@ -235,5 +235,5 @@
 DEFAULT_POPUP_TYPE = E5PassivePopup.Boxed
 DEFAULT_POPUP_TIME = 6 * 1000
 POPUP_FLAGS = Qt.WindowFlags(
-    Qt.Tool | Qt.X11BypassWindowManagerHint |
-    Qt.WindowStaysOnTopHint | Qt.FramelessWindowHint)
+    Qt.WindowType.Tool | Qt.WindowType.X11BypassWindowManagerHint |
+    Qt.WindowType.WindowStaysOnTopHint | Qt.WindowType.FramelessWindowHint)

eric ide

mercurial