Debugger/BreakPointViewer.py

changeset 12
1d8dd9706f46
parent 0
de9c2efb9d02
child 13
1af94a91f439
equal deleted inserted replaced
11:b0996e4a289e 12:1d8dd9706f46
10 from PyQt4.QtCore import * 10 from PyQt4.QtCore import *
11 from PyQt4.QtGui import * 11 from PyQt4.QtGui import *
12 12
13 from E4Gui.E4Application import e4App 13 from E4Gui.E4Application import e4App
14 14
15 from EditBreakpointDialog import EditBreakpointDialog 15 from .EditBreakpointDialog import EditBreakpointDialog
16 16
17 class BreakPointViewer(QTreeView): 17 class BreakPointViewer(QTreeView):
18 """ 18 """
19 Class implementing the Breakpoint viewer widget. 19 Class implementing the Breakpoint viewer widget.
20 20
426 """ 426 """
427 Private method to get the count of items selected. 427 Private method to get the count of items selected.
428 428
429 @return count of items selected (integer) 429 @return count of items selected (integer)
430 """ 430 """
431 count = len(self.selectedIndexes()) / (self.__model.columnCount() - 1) 431 count = len(self.selectedIndexes()) // (self.__model.columnCount() - 1)
432 # column count is 1 greater than selectable 432 # column count is 1 greater than selectable
433 return count 433 return count
434 434
435 def __configure(self): 435 def __configure(self):
436 """ 436 """

eric ide

mercurial