--- a/eric7/Debugger/BreakPointViewer.py Sun May 16 11:43:59 2021 +0200 +++ b/eric7/Debugger/BreakPointViewer.py Sun May 16 20:07:24 2021 +0200 @@ -7,10 +7,10 @@ Module implementing the Breakpoint viewer widget. """ -from PyQt5.QtCore import ( +from PyQt6.QtCore import ( pyqtSignal, Qt, QItemSelectionModel, QSortFilterProxyModel, QFileInfo ) -from PyQt5.QtWidgets import ( +from PyQt6.QtWidgets import ( QTreeView, QAbstractItemView, QHeaderView, QMenu, QDialog ) @@ -145,15 +145,11 @@ return flags = ( - QItemSelectionModel.SelectionFlags( - QItemSelectionModel.SelectionFlag.ClearAndSelect | - QItemSelectionModel.SelectionFlag.Rows - ) + (QItemSelectionModel.SelectionFlag.ClearAndSelect | + QItemSelectionModel.SelectionFlag.Rows) if selected else - QItemSelectionModel.SelectionFlags( - QItemSelectionModel.SelectionFlag.Deselect | - QItemSelectionModel.SelectionFlag.Rows - ) + (QItemSelectionModel.SelectionFlag.Deselect | + QItemSelectionModel.SelectionFlag.Rows) ) self.selectionModel().select(index, flags)