--- a/src/eric7/Debugger/CallTraceViewer.py Tue Oct 18 16:05:20 2022 +0200 +++ b/src/eric7/Debugger/CallTraceViewer.py Tue Oct 18 16:06:21 2022 +0200 @@ -13,13 +13,13 @@ from PyQt6.QtCore import pyqtSlot, pyqtSignal, Qt from PyQt6.QtWidgets import QWidget, QTreeWidgetItem -from EricWidgets.EricApplication import ericApp -from EricWidgets import EricFileDialog, EricMessageBox +from eric7.EricWidgets.EricApplication import ericApp +from eric7.EricWidgets import EricFileDialog, EricMessageBox from .Ui_CallTraceViewer import Ui_CallTraceViewer -import UI.PixmapCache -import Preferences +from eric7.EricGui import EricPixmapCache +from eric7 import Preferences class CallTraceViewer(QWidget, Ui_CallTraceViewer): @@ -49,14 +49,14 @@ self.__dbs = debugServer self.__debugViewer = debugViewer - self.startTraceButton.setIcon(UI.PixmapCache.getIcon("callTraceStart")) - self.stopTraceButton.setIcon(UI.PixmapCache.getIcon("callTraceStop")) - self.resizeButton.setIcon(UI.PixmapCache.getIcon("resizeColumns")) - self.clearButton.setIcon(UI.PixmapCache.getIcon("editDelete")) - self.saveButton.setIcon(UI.PixmapCache.getIcon("fileSave")) + self.startTraceButton.setIcon(EricPixmapCache.getIcon("callTraceStart")) + self.stopTraceButton.setIcon(EricPixmapCache.getIcon("callTraceStop")) + self.resizeButton.setIcon(EricPixmapCache.getIcon("resizeColumns")) + self.clearButton.setIcon(EricPixmapCache.getIcon("editDelete")) + self.saveButton.setIcon(EricPixmapCache.getIcon("fileSave")) self.__headerItem = QTreeWidgetItem(["", self.tr("From"), self.tr("To")]) - self.__headerItem.setIcon(0, UI.PixmapCache.getIcon("callReturn")) + self.__headerItem.setIcon(0, EricPixmapCache.getIcon("callReturn")) self.callTrace.setHeaderItem(self.__headerItem) self.__callStack = [] @@ -285,9 +285,9 @@ """ if debuggerId == self.__tracedDebuggerId: if isCall: - icon = UI.PixmapCache.getIcon("forward") + icon = EricPixmapCache.getIcon("forward") else: - icon = UI.PixmapCache.getIcon("back") + icon = EricPixmapCache.getIcon("back") parentItem = self.__callStack[-1] if self.__callStack else self.callTrace if self.__projectMode: