5 |
5 |
6 """ |
6 """ |
7 Module implementing the Confirmation dialog. |
7 Module implementing the Confirmation dialog. |
8 """ |
8 """ |
9 |
9 |
10 from PyQt5.QtCore import pyqtSlot |
10 from PyQt6.QtCore import pyqtSlot |
11 from PyQt5.QtWidgets import QDialogButtonBox, QAbstractButton |
11 from PyQt6.QtWidgets import QDialogButtonBox, QAbstractButton |
12 |
12 |
13 from .Ui_ConfirmationDialog import Ui_ConfirmationDialog |
13 from .Ui_ConfirmationDialog import Ui_ConfirmationDialog |
14 from .RefactoringDialogBase import RefactoringDialogBase |
14 from .RefactoringDialogBase import RefactoringDialogBase |
15 |
15 |
16 import Utilities |
16 import Utilities |
41 RefactoringDialogBase.__init__(self, refactoring, title, parent) |
41 RefactoringDialogBase.__init__(self, refactoring, title, parent) |
42 self.setupUi(self) |
42 self.setupUi(self) |
43 |
43 |
44 self._changeGroupName = changeGroupName |
44 self._changeGroupName = changeGroupName |
45 |
45 |
46 self.__okButton = self.buttonBox.button(QDialogButtonBox.Ok) |
46 self.__okButton = self.buttonBox.button( |
|
47 QDialogButtonBox.StandardButton.Ok) |
47 self.__previewButton = self.buttonBox.addButton( |
48 self.__previewButton = self.buttonBox.addButton( |
48 self.tr("Preview"), QDialogButtonBox.ActionRole) |
49 self.tr("Preview"), QDialogButtonBox.ButtonRole.ActionRole) |
49 self.__previewButton.setDefault(True) |
50 self.__previewButton.setDefault(True) |
50 |
51 |
51 self.__method = method |
52 self.__method = method |
52 self.__parameters = parameters |
53 self.__parameters = parameters |
53 |
54 |