eric6/E5Gui/E5FileSaveConfirmDialog.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8218
7c09585bd960
--- a/eric6/E5Gui/E5FileSaveConfirmDialog.py	Mon Mar 01 17:48:43 2021 +0100
+++ b/eric6/E5Gui/E5FileSaveConfirmDialog.py	Tue Mar 02 17:17:09 2021 +0100
@@ -59,11 +59,11 @@
         
         self.__buttonBox = QDialogButtonBox(self)
         self.__cancelButton = self.__buttonBox.addButton(
-            QDialogButtonBox.Cancel)
+            QDialogButtonBox.StandardButton.Cancel)
         self.__overwriteButton = self.__buttonBox.addButton(
-            self.tr("Overwrite"), QDialogButtonBox.AcceptRole)
+            self.tr("Overwrite"), QDialogButtonBox.ButtonRole.AcceptRole)
         self.__renameButton = self.__buttonBox.addButton(
-            self.tr("Rename"), QDialogButtonBox.AcceptRole)
+            self.tr("Rename"), QDialogButtonBox.ButtonRole.AcceptRole)
         
         self.__layout.addWidget(self.__label)
         self.__layout.addWidget(self.__pathPicker)

eric ide

mercurial