253 """ |
253 """ |
254 if self.__openFile(): |
254 if self.__openFile(): |
255 self.close() |
255 self.close() |
256 |
256 |
257 @pyqtSlot(QTreeWidgetItem, int) |
257 @pyqtSlot(QTreeWidgetItem, int) |
258 def on_fileList_itemActivated(self, itm, column): |
258 def on_fileList_itemActivated(self, itm, _column): |
259 """ |
259 """ |
260 Private slot to handle the double click on a file item. |
260 Private slot to handle the double click on a file item. |
261 |
261 |
262 It emits the signal sourceFile or designerFile depending on the |
262 It emits the signal sourceFile or designerFile depending on the |
263 file extension. |
263 file extension. |
264 |
264 |
265 @param itm the double clicked listview item |
265 @param itm the double clicked listview item |
266 @type QTreeWidgetItem |
266 @type QTreeWidgetItem |
267 @param column column that was double clicked |
267 @param _column column that was double clicked (unused) |
268 @type int |
268 @type int |
269 """ |
269 """ |
270 self.__openFile(itm) |
270 self.__openFile(itm) |
271 |
271 |
272 @pyqtSlot(QTreeWidgetItem, QTreeWidgetItem) |
272 @pyqtSlot(QTreeWidgetItem, QTreeWidgetItem) |
273 def on_fileList_currentItemChanged(self, current, previous): |
273 def on_fileList_currentItemChanged(self, current, _previous): |
274 """ |
274 """ |
275 Private slot handling a change of the current item. |
275 Private slot handling a change of the current item. |
276 |
276 |
277 @param current current item |
277 @param current current item |
278 @type QTreeWidgetItem |
278 @type QTreeWidgetItem |
279 @param previous prevoius current item |
279 @param _previous prevoius current item (unused) |
280 @type QTreeWidgetItem |
280 @type QTreeWidgetItem |
281 """ |
281 """ |
282 self.buttonBox.button(QDialogButtonBox.StandardButton.Open).setEnabled( |
282 self.buttonBox.button(QDialogButtonBox.StandardButton.Open).setEnabled( |
283 current is not None |
283 current is not None |
284 ) |
284 ) |