488 else: |
488 else: |
489 hostFingerprints[host] = [fingerprint] |
489 hostFingerprints[host] = [fingerprint] |
490 return hostFingerprints |
490 return hostFingerprints |
491 |
491 |
492 @pyqtSlot(QTreeWidgetItem, QTreeWidgetItem) |
492 @pyqtSlot(QTreeWidgetItem, QTreeWidgetItem) |
493 def on_fingerprintsList_currentItemChanged(self, current, previous): |
493 def on_fingerprintsList_currentItemChanged(self, _current, _previous): |
494 """ |
494 """ |
495 Private slot handling a change of the current fingerprints item. |
495 Private slot handling a change of the current fingerprints item. |
496 |
496 |
497 @param current reference to the current item |
497 @param _current reference to the current item (unused) |
498 @type QTreeWidgetItem |
498 @type QTreeWidgetItem |
499 @param previous reference to the previous current item |
499 @param _previous reference to the previous current item (unused) |
500 @type QTreeWidgetItem |
500 @type QTreeWidgetItem |
501 """ |
501 """ |
502 self.__updateFingerprintsButtons() |
502 self.__updateFingerprintsButtons() |
503 |
503 |
504 @pyqtSlot() |
504 @pyqtSlot() |
600 minimumProtocol = itm.data(1, Qt.ItemDataRole.UserRole) |
600 minimumProtocol = itm.data(1, Qt.ItemDataRole.UserRole) |
601 minimumProtocols[host] = minimumProtocol |
601 minimumProtocols[host] = minimumProtocol |
602 return minimumProtocols |
602 return minimumProtocols |
603 |
603 |
604 @pyqtSlot(QTreeWidgetItem, QTreeWidgetItem) |
604 @pyqtSlot(QTreeWidgetItem, QTreeWidgetItem) |
605 def on_protocolsList_currentItemChanged(self, current, previous): |
605 def on_protocolsList_currentItemChanged(self, _current, _previous): |
606 """ |
606 """ |
607 Private slot handling a change of the current minimum protocol item. |
607 Private slot handling a change of the current minimum protocol item. |
608 |
608 |
609 @param current reference to the current item |
609 @param _current reference to the current item (unused) |
610 @type QTreeWidgetItem |
610 @type QTreeWidgetItem |
611 @param previous reference to the previous current item |
611 @param _previous reference to the previous current item (unused) |
612 @type QTreeWidgetItem |
612 @type QTreeWidgetItem |
613 """ |
613 """ |
614 self.__updateProtocolsButtons() |
614 self.__updateProtocolsButtons() |
615 |
615 |
616 @pyqtSlot() |
616 @pyqtSlot() |