9 |
9 |
10 from __future__ import unicode_literals |
10 from __future__ import unicode_literals |
11 |
11 |
12 import os.path |
12 import os.path |
13 |
13 |
14 from PyQt5.QtWidgets import QDialog, QDialogButtonBox |
14 from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QComboBox |
15 |
15 |
16 from E5Gui.E5PathPicker import E5PathPickerModes |
16 from E5Gui.E5PathPicker import E5PathPickerModes |
17 |
17 |
18 from .Ui_EditBreakpointDialog import Ui_EditBreakpointDialog |
18 from .Ui_EditBreakpointDialog import Ui_EditBreakpointDialog |
19 |
19 |
44 if name: |
44 if name: |
45 self.setObjectName(name) |
45 self.setObjectName(name) |
46 self.setModal(modal) |
46 self.setModal(modal) |
47 |
47 |
48 self.filenamePicker.setMode(E5PathPickerModes.OpenFileMode) |
48 self.filenamePicker.setMode(E5PathPickerModes.OpenFileMode) |
|
49 self.filenamePicker.setSizeAdjustPolicy( |
|
50 QComboBox.AdjustToMinimumContentsLength) |
49 |
51 |
50 self.okButton = self.buttonBox.button(QDialogButtonBox.Ok) |
52 self.okButton = self.buttonBox.button(QDialogButtonBox.Ok) |
51 |
53 |
52 fn, lineno = breakPointId |
54 fn, lineno = breakPointId |
53 |
55 |