Mon, 25 Oct 2021 17:57:51 +0200
Fixed a few enum related issues.
--- 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: