eric6/UI/SplashScreen.py

changeset 8143
2c730d5fd177
parent 7960
e8fc383322f7
child 8207
d359172d11be
diff -r 27f636beebad -r 2c730d5fd177 eric6/UI/SplashScreen.py
--- a/eric6/UI/SplashScreen.py	Mon Mar 01 17:48:43 2021 +0100
+++ b/eric6/UI/SplashScreen.py	Tue Mar 02 17:17:09 2021 +0100
@@ -28,7 +28,10 @@
         ericPic = QPixmap(
             os.path.join(getConfig('ericPixDir'), 'ericSplash.png'))
         self.labelAlignment = Qt.Alignment(
-            Qt.AlignBottom | Qt.AlignRight | Qt.AlignAbsolute)
+            Qt.AlignmentFlag.AlignBottom |
+            Qt.AlignmentFlag.AlignRight |
+            Qt.AlignmentFlag.AlignAbsolute
+        )
         super(SplashScreen, self).__init__(ericPic)
         self.show()
         QApplication.flush()
@@ -41,7 +44,7 @@
         """
         logging.debug(msg)
         super(SplashScreen, self).showMessage(
-            msg, self.labelAlignment, QColor(Qt.white))
+            msg, self.labelAlignment, QColor(Qt.GlobalColor.white))
         QApplication.processEvents()
         
     def clearMessage(self):

eric ide

mercurial