484 |
484 |
485 def __showPreferences(self): |
485 def __showPreferences(self): |
486 """ |
486 """ |
487 Private slot to set the preferences. |
487 Private slot to set the preferences. |
488 """ |
488 """ |
489 from Preferences.ConfigurationDialog import ConfigurationDialog |
489 from Preferences.ConfigurationDialog import ( |
|
490 ConfigurationDialog, ConfigurationMode |
|
491 ) |
490 dlg = ConfigurationDialog( |
492 dlg = ConfigurationDialog( |
491 None, 'Configuration', True, fromEric=True, |
493 None, 'Configuration', True, fromEric=True, |
492 displayMode=ConfigurationDialog.TrayStarterMode) |
494 displayMode=ConfigurationMode.TRAYSTARTERMODE) |
493 dlg.preferencesChanged.connect(self.preferencesChanged) |
495 dlg.preferencesChanged.connect(self.preferencesChanged) |
494 dlg.show() |
496 dlg.show() |
495 dlg.showConfigurationPageByName("trayStarterPage") |
497 dlg.showConfigurationPageByName("trayStarterPage") |
496 dlg.exec() |
498 dlg.exec() |
497 QApplication.processEvents() |
499 QApplication.processEvents() |