117 @pyqtSlot(QItemSelection, QItemSelection) |
118 @pyqtSlot(QItemSelection, QItemSelection) |
118 def __selectionChanged(self, selected, deselected): |
119 def __selectionChanged(self, selected, deselected): |
119 """ |
120 """ |
120 Private slot to handle a change of the selection. |
121 Private slot to handle a change of the selection. |
121 |
122 |
122 @param selected item selection of selected items (QItemSelection) |
123 @param selected item selection of selected items |
123 @param deselected item selection of deselected items (QItemSelection) |
124 @type QItemSelection |
|
125 @param deselected item selection of deselected items |
|
126 @type QItemSelection |
124 """ |
127 """ |
125 self.editButton.setEnabled( |
128 self.editButton.setEnabled( |
126 len(self.enginesTable.selectionModel().selectedRows()) <= 1 |
129 len(self.enginesTable.selectionModel().selectedRows()) <= 1 |
127 ) |
130 ) |