273 """ |
273 """ |
274 if self.__openFile(): |
274 if self.__openFile(): |
275 self.close() |
275 self.close() |
276 |
276 |
277 @pyqtSlot(QTreeWidgetItem, int) |
277 @pyqtSlot(QTreeWidgetItem, int) |
278 def on_fileList_itemActivated(self, itm, column): |
278 def on_fileList_itemActivated(self, itm, _column): |
279 """ |
279 """ |
280 Private slot to handle the double click on a file item. |
280 Private slot to handle the double click on a file item. |
281 |
281 |
282 It emits the signal sourceFile or designerFile depending on the |
282 It emits the signal sourceFile or designerFile depending on the |
283 file extension. |
283 file extension. |
284 |
284 |
285 @param itm the double clicked listview item |
285 @param itm the double clicked listview item |
286 @type QTreeWidgetItem |
286 @type QTreeWidgetItem |
287 @param column column that was double clicked |
287 @param _column column that was double clicked (unused) |
288 @type int |
288 @type int |
289 """ |
289 """ |
290 self.__openFile(itm) |
290 self.__openFile(itm) |
291 |
291 |
292 @pyqtSlot(QTreeWidgetItem, QTreeWidgetItem) |
292 @pyqtSlot(QTreeWidgetItem, QTreeWidgetItem) |
293 def on_fileList_currentItemChanged(self, current, previous): |
293 def on_fileList_currentItemChanged(self, current, _previous): |
294 """ |
294 """ |
295 Private slot handling a change of the current item. |
295 Private slot handling a change of the current item. |
296 |
296 |
297 @param current current item |
297 @param current current item |
298 @type QTreeWidgetItem |
298 @type QTreeWidgetItem |
299 @param previous prevoius current item |
299 @param _previous prevoius current item (unused) |
300 @type QTreeWidgetItem |
300 @type QTreeWidgetItem |
301 """ |
301 """ |
302 self.buttonBox.button(QDialogButtonBox.StandardButton.Open).setEnabled( |
302 self.buttonBox.button(QDialogButtonBox.StandardButton.Open).setEnabled( |
303 current is not None |
303 current is not None |
304 ) |
304 ) |