10 from PyQt6.QtCore import pyqtSlot, Qt |
10 from PyQt6.QtCore import pyqtSlot, Qt |
11 from PyQt6.QtWidgets import QDialog, QTreeWidgetItem |
11 from PyQt6.QtWidgets import QDialog, QTreeWidgetItem |
12 |
12 |
13 from .Ui_VirusTotalDomainReportDialog import Ui_VirusTotalDomainReportDialog |
13 from .Ui_VirusTotalDomainReportDialog import Ui_VirusTotalDomainReportDialog |
14 |
14 |
15 import UI.PixmapCache |
15 from eric7.EricGui import EricPixmapCache |
16 |
16 |
17 |
17 |
18 class VirusTotalDomainReportDialog(QDialog, Ui_VirusTotalDomainReportDialog): |
18 class VirusTotalDomainReportDialog(QDialog, Ui_VirusTotalDomainReportDialog): |
19 """ |
19 """ |
20 Class implementing a dialog to show the VirusTotal domain report. |
20 Class implementing a dialog to show the VirusTotal domain report. |
55 super().__init__(parent) |
55 super().__init__(parent) |
56 self.setupUi(self) |
56 self.setupUi(self) |
57 self.setWindowFlags(Qt.WindowType.Window) |
57 self.setWindowFlags(Qt.WindowType.Window) |
58 |
58 |
59 self.headerLabel.setText(self.tr("<b>Report for domain {0}</b>").format(domain)) |
59 self.headerLabel.setText(self.tr("<b>Report for domain {0}</b>").format(domain)) |
60 self.headerPixmap.setPixmap(UI.PixmapCache.getPixmap("virustotal")) |
60 self.headerPixmap.setPixmap(EricPixmapCache.getPixmap("virustotal")) |
61 |
61 |
62 for resolution in resolutions: |
62 for resolution in resolutions: |
63 QTreeWidgetItem( |
63 QTreeWidgetItem( |
64 self.resolutionsList, |
64 self.resolutionsList, |
65 [resolution["ip_address"], resolution["last_resolved"].split()[0]], |
65 [resolution["ip_address"], resolution["last_resolved"].split()[0]], |