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 """ |