示例#1
0
 def saveSettings(self):
     """Saves the settings and applies them."""
     for page in self.pages():
         if page.hasChanges:
             page.saveSettings()
             page.hasChanges = False
     self.buttons.button(QDialogButtonBox.Apply).setEnabled(False)
     
     # emit the signal
     app.settingsChanged()
示例#2
0
 def saveSettings(self):
     """Saves the settings and applies them."""
     for page in self.pages():
         if page.hasChanges:
             page.saveSettings()
             page.hasChanges = False
     self.buttons.button(QDialogButtonBox.Apply).setEnabled(False)
     
     # emit the signal
     app.settingsChanged()