eric6/Plugins/DocumentationPlugins/Ericapi/EricapiConfigDialog.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8218
7c09585bd960
--- a/eric6/Plugins/DocumentationPlugins/Ericapi/EricapiConfigDialog.py	Mon Mar 01 17:48:43 2021 +0100
+++ b/eric6/Plugins/DocumentationPlugins/Ericapi/EricapiConfigDialog.py	Tue Mar 02 17:17:09 2021 +0100
@@ -46,7 +46,8 @@
         self.ignoreDirPicker.setMode(E5PathPickerModes.DirectoryMode)
         self.ignoreDirPicker.setDefaultDirectory(project.getProjectPath())
         
-        self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False)
+        self.buttonBox.button(
+            QDialogButtonBox.StandardButton.Ok).setEnabled(False)
         for language in sorted(
                 DocumentationTools.supportedExtensionsDictForApis.keys()):
             self.languagesList.addItem(language)
@@ -82,7 +83,7 @@
                 # convert Python to the more specific Python3
                 language = "Python3"
             items = self.languagesList.findItems(
-                language, Qt.MatchFlags(Qt.MatchExactly))
+                language, Qt.MatchFlags(Qt.MatchFlag.MatchExactly))
             items and items[0].setSelected(True)
     
     def __initializeDefaults(self):
@@ -215,7 +216,8 @@
         
         @param filename name of the file (string)
         """
-        self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(filename != "")
+        self.buttonBox.button(
+            QDialogButtonBox.StandardButton.Ok).setEnabled(filename != "")
     
     @pyqtSlot(str)
     def on_ignoreDirPicker_pathSelected(self, path):

eric ide

mercurial