9 |
9 |
10 import os.path |
10 import os.path |
11 |
11 |
12 from PyQt6.QtWidgets import QDialog, QDialogButtonBox, QComboBox |
12 from PyQt6.QtWidgets import QDialog, QDialogButtonBox, QComboBox |
13 |
13 |
14 from E5Gui.E5PathPicker import E5PathPickerModes |
14 from E5Gui.EricPathPicker import EricPathPickerModes |
15 |
15 |
16 from .Ui_EditBreakpointDialog import Ui_EditBreakpointDialog |
16 from .Ui_EditBreakpointDialog import Ui_EditBreakpointDialog |
17 |
17 |
18 |
18 |
19 class EditBreakpointDialog(QDialog, Ui_EditBreakpointDialog): |
19 class EditBreakpointDialog(QDialog, Ui_EditBreakpointDialog): |
41 self.setupUi(self) |
41 self.setupUi(self) |
42 if name: |
42 if name: |
43 self.setObjectName(name) |
43 self.setObjectName(name) |
44 self.setModal(modal) |
44 self.setModal(modal) |
45 |
45 |
46 self.filenamePicker.setMode(E5PathPickerModes.OPEN_FILE_MODE) |
46 self.filenamePicker.setMode(EricPathPickerModes.OPEN_FILE_MODE) |
47 self.filenamePicker.setSizeAdjustPolicy( |
47 self.filenamePicker.setSizeAdjustPolicy( |
48 QComboBox.SizeAdjustPolicy.AdjustToMinimumContentsLengthWithIcon) |
48 QComboBox.SizeAdjustPolicy.AdjustToMinimumContentsLengthWithIcon) |
49 |
49 |
50 self.okButton = self.buttonBox.button( |
50 self.okButton = self.buttonBox.button( |
51 QDialogButtonBox.StandardButton.Ok) |
51 QDialogButtonBox.StandardButton.Ok) |