--- a/eric7/Debugger/WatchPointViewer.py Sun May 16 11:43:59 2021 +0200 +++ b/eric7/Debugger/WatchPointViewer.py Sun May 16 20:07:24 2021 +0200 @@ -7,10 +7,10 @@ Module implementing the watch expression viewer widget. """ -from PyQt5.QtCore import ( +from PyQt6.QtCore import ( Qt, QModelIndex, QItemSelectionModel, QSortFilterProxyModel ) -from PyQt5.QtWidgets import ( +from PyQt6.QtWidgets import ( QTreeView, QAbstractItemView, QMenu, QHeaderView, QDialog ) @@ -127,13 +127,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)