eric6/WebBrowser/VirusTotal/VirusTotalIpReportDialog.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8218
7c09585bd960
equal deleted inserted replaced
8141:27f636beebad 8143:2c730d5fd177
34 @param parent reference to the parent widget 34 @param parent reference to the parent widget
35 @type QWidget 35 @type QWidget
36 """ 36 """
37 super(VirusTotalIpReportDialog, self).__init__(parent) 37 super(VirusTotalIpReportDialog, self).__init__(parent)
38 self.setupUi(self) 38 self.setupUi(self)
39 self.setWindowFlags(Qt.Window) 39 self.setWindowFlags(Qt.WindowType.Window)
40 40
41 self.headerLabel.setText( 41 self.headerLabel.setText(
42 self.tr("<b>Report for IP {0}</b>").format(ip)) 42 self.tr("<b>Report for IP {0}</b>").format(ip))
43 self.headerPixmap.setPixmap( 43 self.headerPixmap.setPixmap(
44 UI.PixmapCache.getPixmap("virustotal")) 44 UI.PixmapCache.getPixmap("virustotal"))
50 [resolution["hostname"], 50 [resolution["hostname"],
51 resolution["last_resolved"].split()[0]] 51 resolution["last_resolved"].split()[0]]
52 ) 52 )
53 self.resolutionsList.resizeColumnToContents(0) 53 self.resolutionsList.resizeColumnToContents(0)
54 self.resolutionsList.resizeColumnToContents(1) 54 self.resolutionsList.resizeColumnToContents(1)
55 self.resolutionsList.sortByColumn(0, Qt.AscendingOrder) 55 self.resolutionsList.sortByColumn(0, Qt.SortOrder.AscendingOrder)
56 56
57 if not urls: 57 if not urls:
58 self.detectedUrlsGroup.setVisible(False) 58 self.detectedUrlsGroup.setVisible(False)
59 for url in urls: 59 for url in urls:
60 QTreeWidgetItem( 60 QTreeWidgetItem(
65 url["scan_date"].split()[0]] 65 url["scan_date"].split()[0]]
66 ) 66 )
67 self.urlsList.resizeColumnToContents(0) 67 self.urlsList.resizeColumnToContents(0)
68 self.urlsList.resizeColumnToContents(1) 68 self.urlsList.resizeColumnToContents(1)
69 self.urlsList.resizeColumnToContents(2) 69 self.urlsList.resizeColumnToContents(2)
70 self.urlsList.sortByColumn(0, Qt.AscendingOrder) 70 self.urlsList.sortByColumn(0, Qt.SortOrder.AscendingOrder)

eric ide

mercurial