114 dlg = OpenSearchEditDialog(engine, self) |
114 dlg = OpenSearchEditDialog(engine, self) |
115 if dlg.exec() == QDialog.DialogCode.Accepted: |
115 if dlg.exec() == QDialog.DialogCode.Accepted: |
116 osm.enginesChanged() |
116 osm.enginesChanged() |
117 |
117 |
118 @pyqtSlot(QItemSelection, QItemSelection) |
118 @pyqtSlot(QItemSelection, QItemSelection) |
119 def __selectionChanged(self, selected, deselected): |
119 def __selectionChanged(self, _selected, _deselected): |
120 """ |
120 """ |
121 Private slot to handle a change of the selection. |
121 Private slot to handle a change of the selection. |
122 |
122 |
123 @param selected item selection of selected items |
123 @param _selected item selection of selected items (unused) |
124 @type QItemSelection |
124 @type QItemSelection |
125 @param deselected item selection of deselected items |
125 @param _deselected item selection of deselected items (unused) |
126 @type QItemSelection |
126 @type QItemSelection |
127 """ |
127 """ |
128 self.editButton.setEnabled( |
128 self.editButton.setEnabled( |
129 len(self.enginesTable.selectionModel().selectedRows()) <= 1 |
129 len(self.enginesTable.selectionModel().selectedRows()) <= 1 |
130 ) |
130 ) |