eric6/PluginManager/PluginInstallDialog.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8205
4a0f1f896341
diff -r 27f636beebad -r 2c730d5fd177 eric6/PluginManager/PluginInstallDialog.py
--- a/eric6/PluginManager/PluginInstallDialog.py	Mon Mar 01 17:48:43 2021 +0100
+++ b/eric6/PluginManager/PluginInstallDialog.py	Tue Mar 02 17:17:09 2021 +0100
@@ -61,14 +61,16 @@
             self.__external = False
         
         self.__backButton = self.buttonBox.addButton(
-            self.tr("< Back"), QDialogButtonBox.ActionRole)
+            self.tr("< Back"), QDialogButtonBox.ButtonRole.ActionRole)
         self.__nextButton = self.buttonBox.addButton(
-            self.tr("Next >"), QDialogButtonBox.ActionRole)
+            self.tr("Next >"), QDialogButtonBox.ButtonRole.ActionRole)
         self.__finishButton = self.buttonBox.addButton(
-            self.tr("Install"), QDialogButtonBox.ActionRole)
+            self.tr("Install"), QDialogButtonBox.ButtonRole.ActionRole)
         
-        self.__closeButton = self.buttonBox.button(QDialogButtonBox.Close)
-        self.__cancelButton = self.buttonBox.button(QDialogButtonBox.Cancel)
+        self.__closeButton = self.buttonBox.button(
+            QDialogButtonBox.StandardButton.Close)
+        self.__cancelButton = self.buttonBox.button(
+            QDialogButtonBox.StandardButton.Cancel)
         
         userDir = self.__pluginManager.getPluginDir("user")
         if userDir is not None:
@@ -166,9 +168,9 @@
             self.tr("Plugin archive (*.zip)"))
         
         if archives:
-            matchflags = Qt.MatchFixedString
+            matchflags = Qt.MatchFlag.MatchFixedString
             if not Utilities.isWindowsPlatform():
-                matchflags |= Qt.MatchCaseSensitive
+                matchflags |= Qt.MatchFlag.MatchCaseSensitive
             for archive in archives:
                 if len(self.archivesList.findItems(archive, matchflags)) == 0:
                     # entry not in list already

eric ide

mercurial