src/eric7/Project/ProjectBaseBrowser.py

branch
eric7
changeset 10683
779cda568acb
parent 10571
d7cf5619662f
child 10704
27d21e5163b8
equal deleted inserted replaced
10682:47be220abdaf 10683:779cda568acb
226 selection = QItemSelection(startIndex, endIndex) 226 selection = QItemSelection(startIndex, endIndex)
227 self.selectionModel().select( 227 self.selectionModel().select(
228 selection, selected and self.SelectFlags or self.DeselectFlags 228 selection, selected and self.SelectFlags or self.DeselectFlags
229 ) 229 )
230 230
231 def __modelRowsInserted(self, parent, start, end): # noqa: U100 231 def __modelRowsInserted(self, _parent, _start, _end):
232 """ 232 """
233 Private slot called after rows have been inserted into the model. 233 Private slot called after rows have been inserted into the model.
234 234
235 @param parent parent index of inserted rows 235 @param _parent parent index of inserted rows (unused)
236 @type QModelIndex 236 @type QModelIndex
237 @param start start row number 237 @param _start start row number (unused)
238 @type int 238 @type int
239 @param end end row number 239 @param _end end row number (unused)
240 @type int 240 @type int
241 """ 241 """
242 self._resizeColumns() 242 self._resizeColumns()
243 243
244 def _projectClosed(self): 244 def _projectClosed(self):
552 for act in self.dirMultiMenuActions: 552 for act in self.dirMultiMenuActions:
553 act.setEnabled(True) 553 act.setEnabled(True)
554 else: 554 else:
555 self.vcsHelper.showContextMenuDirMulti(menu, self.dirMultiMenuActions) 555 self.vcsHelper.showContextMenuDirMulti(menu, self.dirMultiMenuActions)
556 556
557 def _showContextMenuBack(self, menu): # noqa: U100 557 def _showContextMenuBack(self, _menu):
558 """ 558 """
559 Protected slot called before the context menu is shown. 559 Protected slot called before the context menu is shown.
560 560
561 @param menu reference to the menu to be shown 561 @param _menu reference to the menu to be shown (unused)
562 @type QMenu 562 @type QMenu
563 """ 563 """
564 # nothing to do for now 564 # nothing to do for now
565 return 565 return
566 566

eric ide

mercurial