116 for mid, _, mname in res.manufacturer(withName=True): |
118 for mid, _, mname in res.manufacturer(withName=True): |
117 if mid not in seenMIds: |
119 if mid not in seenMIds: |
118 citm = QTreeWidgetItem( |
120 citm = QTreeWidgetItem( |
119 itm, |
121 itm, |
120 [ |
122 [ |
121 self.tr("Manufacturer ID: 0x{0:x} - {1}").format( |
123 ( |
122 mid, mname |
124 self.tr("Manufacturer ID: 0x{0:x} - {1}").format( |
|
125 mid, mname |
|
126 ) |
|
127 if bool(mname) |
|
128 else self.tr("Manufacturer ID: 0x{0:x}").format(mid) |
123 ) |
129 ) |
124 if bool(mname) |
|
125 else self.tr("Manufacturer ID: 0x{0:x}").format(mid) |
|
126 ], |
130 ], |
127 ) |
131 ) |
128 citm.setFirstColumnSpanned(True) |
132 citm.setFirstColumnSpanned(True) |
129 seenMIds.append(mid) |
133 seenMIds.append(mid) |
130 |
134 |