10 from PyQt6.QtCore import Qt |
10 from PyQt6.QtCore import Qt |
11 from PyQt6.QtWidgets import QDialog, QTreeWidgetItem |
11 from PyQt6.QtWidgets import QDialog, QTreeWidgetItem |
12 |
12 |
13 from .Ui_VirusTotalIpReportDialog import Ui_VirusTotalIpReportDialog |
13 from .Ui_VirusTotalIpReportDialog import Ui_VirusTotalIpReportDialog |
14 |
14 |
15 import UI.PixmapCache |
15 from eric7.EricGui import EricPixmapCache |
16 |
16 |
17 |
17 |
18 class VirusTotalIpReportDialog(QDialog, Ui_VirusTotalIpReportDialog): |
18 class VirusTotalIpReportDialog(QDialog, Ui_VirusTotalIpReportDialog): |
19 """ |
19 """ |
20 Class implementing a dialog to show the VirusTotal IP address report. |
20 Class implementing a dialog to show the VirusTotal IP address report. |
38 super().__init__(parent) |
38 super().__init__(parent) |
39 self.setupUi(self) |
39 self.setupUi(self) |
40 self.setWindowFlags(Qt.WindowType.Window) |
40 self.setWindowFlags(Qt.WindowType.Window) |
41 |
41 |
42 self.headerLabel.setText(self.tr("<b>Report for IP {0}</b>").format(ip)) |
42 self.headerLabel.setText(self.tr("<b>Report for IP {0}</b>").format(ip)) |
43 self.headerPixmap.setPixmap(UI.PixmapCache.getPixmap("virustotal")) |
43 self.headerPixmap.setPixmap(EricPixmapCache.getPixmap("virustotal")) |
44 self.ownerLabel.setText(owner) |
44 self.ownerLabel.setText(owner) |
45 |
45 |
46 for resolution in resolutions: |
46 for resolution in resolutions: |
47 QTreeWidgetItem( |
47 QTreeWidgetItem( |
48 self.resolutionsList, |
48 self.resolutionsList, |