--- a/src/eric7/WebBrowser/SiteInfo/SiteInfoWidget.py Tue Oct 18 16:05:20 2022 +0200 +++ b/src/eric7/WebBrowser/SiteInfo/SiteInfoWidget.py Tue Oct 18 16:06:21 2022 +0200 @@ -19,9 +19,9 @@ QSpacerItem, ) -import UI.PixmapCache +from eric7.EricGui import EricPixmapCache -from WebBrowser.WebBrowserWindow import WebBrowserWindow +from eric7.WebBrowser.WebBrowserWindow import WebBrowserWindow class SiteInfoWidget(QMenu): @@ -71,17 +71,17 @@ secureLabel.setText( self.tr("Your connection to this site " "<b>may not be secure</b>.") ) - secureIcon.setPixmap(UI.PixmapCache.getPixmap("securityMedium")) + secureIcon.setPixmap(EricPixmapCache.getPixmap("securityMedium")) else: secureLabel.setText( self.tr("Your connection to this site is <b>secure</b>.") ) - secureIcon.setPixmap(UI.PixmapCache.getPixmap("securityHigh")) + secureIcon.setPixmap(EricPixmapCache.getPixmap("securityHigh")) else: secureLabel.setText( self.tr("Your connection to this site is <b>not secure</b>.") ) - secureIcon.setPixmap(UI.PixmapCache.getPixmap("securityLow")) + secureIcon.setPixmap(EricPixmapCache.getPixmap("securityLow")) rows += 1 visits = WebBrowserWindow.historyManager().siteVisitsCount( @@ -98,16 +98,16 @@ historyLabel.setText( self.tr("This is your <b>{0}.</b> visit of this site.").format(visits) ) - historyIcon.setPixmap(UI.PixmapCache.getPixmap("flagGreen")) + historyIcon.setPixmap(EricPixmapCache.getPixmap("flagGreen")) elif visits == 0: historyLabel.setText( self.tr("You have <b>never</b> visited this site before.").format( visits ) ) - historyIcon.setPixmap(UI.PixmapCache.getPixmap("flagBlack")) + historyIcon.setPixmap(EricPixmapCache.getPixmap("flagBlack")) else: - historyIcon.setPixmap(UI.PixmapCache.getPixmap("flagYellow")) + historyIcon.setPixmap(EricPixmapCache.getPixmap("flagYellow")) if visits == 1: visitStr = self.tr("first") elif visits == 2: