5 |
5 |
6 """ |
6 """ |
7 Module implementing the Breakpoint viewer widget. |
7 Module implementing the Breakpoint viewer widget. |
8 """ |
8 """ |
9 |
9 |
10 from PyQt5.QtCore import ( |
10 from PyQt6.QtCore import ( |
11 pyqtSignal, Qt, QItemSelectionModel, QSortFilterProxyModel, QFileInfo |
11 pyqtSignal, Qt, QItemSelectionModel, QSortFilterProxyModel, QFileInfo |
12 ) |
12 ) |
13 from PyQt5.QtWidgets import ( |
13 from PyQt6.QtWidgets import ( |
14 QTreeView, QAbstractItemView, QHeaderView, QMenu, QDialog |
14 QTreeView, QAbstractItemView, QHeaderView, QMenu, QDialog |
15 ) |
15 ) |
16 |
16 |
17 from E5Gui.E5Application import e5App |
17 from E5Gui.E5Application import e5App |
18 |
18 |
143 """ |
143 """ |
144 if not index.isValid(): |
144 if not index.isValid(): |
145 return |
145 return |
146 |
146 |
147 flags = ( |
147 flags = ( |
148 QItemSelectionModel.SelectionFlags( |
148 (QItemSelectionModel.SelectionFlag.ClearAndSelect | |
149 QItemSelectionModel.SelectionFlag.ClearAndSelect | |
149 QItemSelectionModel.SelectionFlag.Rows) |
150 QItemSelectionModel.SelectionFlag.Rows |
|
151 ) |
|
152 if selected else |
150 if selected else |
153 QItemSelectionModel.SelectionFlags( |
151 (QItemSelectionModel.SelectionFlag.Deselect | |
154 QItemSelectionModel.SelectionFlag.Deselect | |
152 QItemSelectionModel.SelectionFlag.Rows) |
155 QItemSelectionModel.SelectionFlag.Rows |
|
156 ) |
|
157 ) |
153 ) |
158 self.selectionModel().select(index, flags) |
154 self.selectionModel().select(index, flags) |
159 |
155 |
160 def __createPopupMenus(self): |
156 def __createPopupMenus(self): |
161 """ |
157 """ |