UI/Browser.py

branch
Py2 comp.
changeset 3060
5883ce99ee12
parent 3058
0a02c433f52d
parent 3034
7ce719013078
child 3145
a9de05d4a22f
equal deleted inserted replaced
3058:0a02c433f52d 3060:5883ce99ee12
314 index = self.indexAt(coord) 314 index = self.indexAt(coord)
315 315
316 if index.isValid(): 316 if index.isValid():
317 self.setCurrentIndex(index) 317 self.setCurrentIndex(index)
318 flags = QItemSelectionModel.SelectionFlags( 318 flags = QItemSelectionModel.SelectionFlags(
319 QItemSelectionModel.ClearAndSelect | 319 QItemSelectionModel.ClearAndSelect |
320 QItemSelectionModel.Rows) 320 QItemSelectionModel.Rows)
321 self.selectionModel().select(index, flags) 321 self.selectionModel().select(index, flags)
322 322
323 itm = self.model().item(index) 323 itm = self.model().item(index)
324 coord = self.mapToGlobal(coord) 324 coord = self.mapToGlobal(coord)

eric ide

mercurial