diff -r e01ae92db699 -r 31965986ecd1 eric6/Plugins/ViewManagerPlugins/Listspace/Listspace.py --- a/eric6/Plugins/ViewManagerPlugins/Listspace/Listspace.py Sat Mar 06 10:00:52 2021 +0100 +++ b/eric6/Plugins/ViewManagerPlugins/Listspace/Listspace.py Sun Mar 28 15:00:11 2021 +0200 @@ -223,17 +223,18 @@ self.viewlist = QListWidget(self) policy = self.viewlist.sizePolicy() - policy.setHorizontalPolicy(QSizePolicy.Ignored) + policy.setHorizontalPolicy(QSizePolicy.Policy.Ignored) self.viewlist.setSizePolicy(policy) self.__splitter.addWidget(self.viewlist) - self.viewlist.setContextMenuPolicy(Qt.CustomContextMenu) + self.viewlist.setContextMenuPolicy( + Qt.ContextMenuPolicy.CustomContextMenu) self.viewlist.currentRowChanged.connect(self.__showSelectedView) self.viewlist.customContextMenuRequested.connect(self.__showMenu) self.stackArea = QSplitter(self) self.stackArea.setChildrenCollapsible(False) self.__splitter.addWidget(self.stackArea) - self.stackArea.setOrientation(Qt.Vertical) + self.stackArea.setOrientation(Qt.Orientation.Vertical) stack = StackedWidget(self.stackArea) self.stackArea.addWidget(stack) self.stacks.append(stack) @@ -648,7 +649,7 @@ self.currentStack = stack stack.currentChanged.connect(self.__currentChanged) stack.installEventFilter(self) - if self.stackArea.orientation() == Qt.Horizontal: + if self.stackArea.orientation() == Qt.Orientation.Horizontal: size = self.stackArea.width() else: size = self.stackArea.height() @@ -729,7 +730,7 @@ Public method to get the orientation of the split view. @return orientation of the split - @rtype Qt.Horizontal or Qt.Vertical + @rtype Qt.Orientation.Horizontal or Qt.Orientation.Vertical """ return self.stackArea.orientation() @@ -738,7 +739,7 @@ Public method used to set the orientation of the split view. @param orientation orientation of the split - @type Qt.Horizontal or Qt.Vertical + @type Qt.Orientation.Horizontal or Qt.Orientation.Vertical """ self.stackArea.setOrientation(orientation) @@ -903,8 +904,8 @@ @rtype bool """ if ( - event.type() == QEvent.MouseButtonPress and - not event.button() == Qt.RightButton + event.type() == QEvent.Type.MouseButtonPress and + not event.button() == Qt.MouseButton.RightButton ): switched = True if isinstance(watched, QStackedWidget):