424 from .EditorOutlineSizesDialog import EditorOutlineSizesDialog |
424 from .EditorOutlineSizesDialog import EditorOutlineSizesDialog |
425 |
425 |
426 defaultWidth = Preferences.getEditor("SourceOutlineWidth") |
426 defaultWidth = Preferences.getEditor("SourceOutlineWidth") |
427 currentWidth = self.parent().sizes()[1] |
427 currentWidth = self.parent().sizes()[1] |
428 |
428 |
429 dlg = EditorOutlineSizesDialog(currentWidth, defaultWidth) |
429 dlg = EditorOutlineSizesDialog(currentWidth, defaultWidth, parent=self) |
430 if dlg.exec() == QDialog.DialogCode.Accepted: |
430 if dlg.exec() == QDialog.DialogCode.Accepted: |
431 newDefaultWidth = dlg.getSizes() |
431 newDefaultWidth = dlg.getSizes() |
432 |
432 |
433 Preferences.setEditor("SourceOutlineWidth", newDefaultWidth) |
433 Preferences.setEditor("SourceOutlineWidth", newDefaultWidth) |
434 |
434 |