--- a/eric7/Debugger/CallTraceViewer.py Sat May 22 17:01:51 2021 +0200 +++ b/eric7/Debugger/CallTraceViewer.py Sat May 22 18:51:46 2021 +0200 @@ -12,8 +12,8 @@ from PyQt6.QtCore import pyqtSlot, pyqtSignal, Qt, QFileInfo from PyQt6.QtWidgets import QWidget, QTreeWidgetItem -from E5Gui.E5Application import e5App -from E5Gui import E5FileDialog, E5MessageBox +from E5Gui.EricApplication import ericApp +from E5Gui import EricFileDialog, EricMessageBox from .Ui_CallTraceViewer import Ui_CallTraceViewer @@ -152,13 +152,13 @@ Private slot to save the call trace info to a file. """ if self.callTrace.topLevelItemCount() > 0: - fname, selectedFilter = E5FileDialog.getSaveFileNameAndFilter( + fname, selectedFilter = EricFileDialog.getSaveFileNameAndFilter( self, self.tr("Save Call Trace Info"), "", self.tr("Text Files (*.txt);;All Files (*)"), None, - E5FileDialog.DontConfirmOverwrite) + EricFileDialog.DontConfirmOverwrite) if fname: ext = QFileInfo(fname).suffix() if not ext: @@ -166,12 +166,12 @@ if ex: fname += ex if QFileInfo(fname).exists(): - res = E5MessageBox.yesNo( + res = EricMessageBox.yesNo( self, self.tr("Save Call Trace Info"), self.tr("<p>The file <b>{0}</b> already exists." " Overwrite it?</p>").format(fname), - icon=E5MessageBox.Warning) + icon=EricMessageBox.Warning) if not res: return fname = Utilities.toNativeSeparators(fname) @@ -191,7 +191,7 @@ itm.text(1), itm.text(2))) itm = self.callTrace.itemBelow(itm) except OSError as err: - E5MessageBox.critical( + EricMessageBox.critical( self, self.tr("Error saving Call Trace Info"), self.tr("""<p>The call trace info could not""" @@ -242,7 +242,7 @@ """ self.__projectMode = enabled if enabled and self.__project is None: - self.__project = e5App().getObject("Project") + self.__project = ericApp().getObject("Project") def __addCallTraceInfo(self, isCall, fromFile, fromLine, fromFunction, toFile, toLine, toFunction, debuggerId):