19 class ConnectionSelectionDialog(QDialog, Ui_ConnectionSelectionDialog): |
19 class ConnectionSelectionDialog(QDialog, Ui_ConnectionSelectionDialog): |
20 """ |
20 """ |
21 Class implementing a dialog to select the port to connect to and the type |
21 Class implementing a dialog to select the port to connect to and the type |
22 of the attached device. |
22 of the attached device. |
23 """ |
23 """ |
24 PortNameRole = Qt.UserRole |
24 PortNameRole = Qt.ItemDataRole.UserRole |
25 VidPidRole = Qt.UserRole + 1 |
25 VidPidRole = Qt.ItemDataRole.UserRole + 1 |
26 |
26 |
27 def __init__(self, ports, currentPort, currentType, parent=None): |
27 def __init__(self, ports, currentPort, currentType, parent=None): |
28 """ |
28 """ |
29 Constructor |
29 Constructor |
30 |
30 |