src/eric7/WebBrowser/OpenSearch/OpenSearchDialog.py

branch
eric7
changeset 10692
9becf9ca115c
parent 10439
21c28b0f9e41
child 11006
a671918232f3
equal deleted inserted replaced
10691:d1a603a70f83 10692:9becf9ca115c
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 )

eric ide

mercurial