12 ) |
12 ) |
13 from PyQt6.QtWidgets import ( |
13 from PyQt6.QtWidgets import ( |
14 QTreeView, QAbstractItemView, QMenu, QHeaderView, QDialog |
14 QTreeView, QAbstractItemView, QMenu, QHeaderView, QDialog |
15 ) |
15 ) |
16 |
16 |
17 from E5Gui.E5Application import e5App |
17 from E5Gui.EricApplication import ericApp |
18 from E5Gui import E5MessageBox |
18 from E5Gui import EricMessageBox |
19 |
19 |
20 import Utilities |
20 import Utilities |
21 |
21 |
22 |
22 |
23 class WatchPointViewer(QTreeView): |
23 class WatchPointViewer(QTreeView): |
247 else: |
247 else: |
248 msg = self.tr( |
248 msg = self.tr( |
249 """<p>A watch expression '<b>{0}</b>'""" |
249 """<p>A watch expression '<b>{0}</b>'""" |
250 """ for the variable <b>{1}</b> already exists.</p>""" |
250 """ for the variable <b>{1}</b> already exists.</p>""" |
251 ).format(special, Utilities.html_encode(cond)) |
251 ).format(special, Utilities.html_encode(cond)) |
252 E5MessageBox.warning( |
252 EricMessageBox.warning( |
253 self, |
253 self, |
254 self.tr("Watch expression already exists"), |
254 self.tr("Watch expression already exists"), |
255 msg) |
255 msg) |
256 |
256 |
257 return duplicate |
257 return duplicate |