108 organisation, |
108 organisation, |
109 Qt.MatchFixedString | Qt.MatchCaseSensitive) |
109 Qt.MatchFixedString | Qt.MatchCaseSensitive) |
110 if len(items) == 0: |
110 if len(items) == 0: |
111 parent = QTreeWidgetItem( |
111 parent = QTreeWidgetItem( |
112 self.serversCertificatesTree, [organisation]) |
112 self.serversCertificatesTree, [organisation]) |
|
113 parent.setFirstColumnSpanned(True) |
113 else: |
114 else: |
114 parent = items[0] |
115 parent = items[0] |
115 |
116 |
116 itm = QTreeWidgetItem(parent, [commonName, server, expiryDate]) |
117 itm = QTreeWidgetItem(parent, [commonName, server, expiryDate]) |
117 itm.setData(0, self.CertRole, cert.toPem()) |
118 itm.setData(0, self.CertRole, cert.toPem()) |
319 items = self.caCertificatesTree.findItems( |
320 items = self.caCertificatesTree.findItems( |
320 organisation, |
321 organisation, |
321 Qt.MatchFixedString | Qt.MatchCaseSensitive) |
322 Qt.MatchFixedString | Qt.MatchCaseSensitive) |
322 if len(items) == 0: |
323 if len(items) == 0: |
323 parent = QTreeWidgetItem(self.caCertificatesTree, [organisation]) |
324 parent = QTreeWidgetItem(self.caCertificatesTree, [organisation]) |
|
325 parent.setFirstColumnSpanned(True) |
324 else: |
326 else: |
325 parent = items[0] |
327 parent = items[0] |
326 |
328 |
327 itm = QTreeWidgetItem(parent, [commonName, expiryDate]) |
329 itm = QTreeWidgetItem(parent, [commonName, expiryDate]) |
328 itm.setData(0, self.CertRole, cert.toPem()) |
330 itm.setData(0, self.CertRole, cert.toPem()) |