Fixed a few enum related issues. eric7

Mon, 25 Oct 2021 17:57:51 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 25 Oct 2021 17:57:51 +0200
branch
eric7
changeset 8720
336f594ff5dd
parent 8719
6b316898a2ac
child 8721
f10b3f345463

Fixed a few enum related issues.

eric7/EricGraphics/EricArrowItem.py file | annotate | diff | comparison | revisions
eric7/Graphics/ClassItem.py file | annotate | diff | comparison | revisions
eric7/Graphics/ModuleItem.py file | annotate | diff | comparison | revisions
eric7/Graphics/PackageItem.py file | annotate | diff | comparison | revisions
eric7/Graphics/UMLItem.py file | annotate | diff | comparison | revisions
--- a/eric7/EricGraphics/EricArrowItem.py	Mon Oct 25 17:47:08 2021 +0200
+++ b/eric7/EricGraphics/EricArrowItem.py	Mon Oct 25 17:57:51 2021 +0200
@@ -124,7 +124,7 @@
         """
         width = 2 if (
             (option.state & QStyle.StateFlag.State_Selected) ==
-            QStyle.State(QStyle.StateFlag.State_Selected)
+            QStyle.StateFlag.State_Selected
         ) else 1
         
         # draw the line first
--- a/eric7/Graphics/ClassItem.py	Mon Oct 25 17:47:08 2021 +0200
+++ b/eric7/Graphics/ClassItem.py	Mon Oct 25 17:57:51 2021 +0200
@@ -278,7 +278,7 @@
         pen = self.pen()
         if (
             (option.state & QStyle.StateFlag.State_Selected) ==
-            QStyle.State(QStyle.StateFlag.State_Selected)
+            QStyle.StateFlag.State_Selected
         ):
             pen.setWidth(2)
         else:
--- a/eric7/Graphics/ModuleItem.py	Mon Oct 25 17:47:08 2021 +0200
+++ b/eric7/Graphics/ModuleItem.py	Mon Oct 25 17:57:51 2021 +0200
@@ -155,7 +155,7 @@
         pen = self.pen()
         if (
             (option.state & QStyle.StateFlag.State_Selected) ==
-            QStyle.State(QStyle.StateFlag.State_Selected)
+            QStyle.StateFlag.State_Selected
         ):
             pen.setWidth(2)
         else:
--- a/eric7/Graphics/PackageItem.py	Mon Oct 25 17:47:08 2021 +0200
+++ b/eric7/Graphics/PackageItem.py	Mon Oct 25 17:57:51 2021 +0200
@@ -178,7 +178,7 @@
         pen = self.pen()
         if (
             (option.state & QStyle.StateFlag.State_Selected) ==
-            QStyle.State(QStyle.StateFlag.State_Selected)
+            QStyle.StateFlag.State_Selected
         ):
             pen.setWidth(2)
         else:
--- a/eric7/Graphics/UMLItem.py	Mon Oct 25 17:47:08 2021 +0200
+++ b/eric7/Graphics/UMLItem.py	Mon Oct 25 17:57:51 2021 +0200
@@ -215,7 +215,7 @@
         pen = self.pen()
         if (
             (option.state & QStyle.StateFlag.State_Selected) ==
-            QStyle.State(QStyle.StateFlag.State_Selected)
+            QStyle.StateFlag.State_Selected
         ):
             pen.setWidth(2)
         else:

eric ide

mercurial