eric7/WebBrowser/QtHelp/QtHelpDocumentationConfigurationDialog.py

branch
eric7
changeset 8564
c48137b0d7ba
parent 8422
bb5da74c1b3f
child 8881
54e42bc2437a
equal deleted inserted replaced
8563:3c6547443fb2 8564:c48137b0d7ba
73 Private slot called by a button of the button box clicked. 73 Private slot called by a button of the button box clicked.
74 74
75 @param button button that was clicked 75 @param button button that was clicked
76 @type QAbstractButton 76 @type QAbstractButton
77 """ 77 """
78 if button == QDialogButtonBox.StandardButton.Apply: 78 if button == self.buttonBox.button(
79 QDialogButtonBox.StandardButton.Apply):
79 self.__applyConfiguration() 80 self.__applyConfiguration()
80 81
81 self.__settings = QtHelpDocumentationSettings.readSettings( 82 self.__settings = QtHelpDocumentationSettings.readSettings(
82 self.__engine) 83 self.__engine)
83 84
85 self.__settings.components()) 86 self.__settings.components())
86 self.filterSettingsWidget.setAvailableVersions( 87 self.filterSettingsWidget.setAvailableVersions(
87 self.__settings.versions()) 88 self.__settings.versions())
88 self.filterSettingsWidget.readSettings( 89 self.filterSettingsWidget.readSettings(
89 self.__engine.filterEngine()) 90 self.__engine.filterEngine())
90 elif button == QDialogButtonBox.StandardButton.Ok: 91 elif button == self.buttonBox.button(
92 QDialogButtonBox.StandardButton.Ok):
91 self.__applyConfiguration() 93 self.__applyConfiguration()
92 self.accept() 94 self.accept()
93 95
94 def __applyConfiguration(self): 96 def __applyConfiguration(self):
95 """ 97 """

eric ide

mercurial