5 |
5 |
6 """ |
6 """ |
7 Module implementing the Inline dialog. |
7 Module implementing the Inline 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_InlineDialog import Ui_InlineDialog |
13 from .Ui_InlineDialog import Ui_InlineDialog |
14 from .RefactoringDialogBase import RefactoringDialogBase |
14 from .RefactoringDialogBase import RefactoringDialogBase |
15 |
15 |
16 |
16 |
39 self._changeGroupName = "Inline" |
39 self._changeGroupName = "Inline" |
40 |
40 |
41 self.__filename = filename |
41 self.__filename = filename |
42 self.__offset = offset |
42 self.__offset = offset |
43 |
43 |
44 self.__okButton = self.buttonBox.button(QDialogButtonBox.Ok) |
44 self.__okButton = self.buttonBox.button( |
|
45 QDialogButtonBox.StandardButton.Ok) |
45 self.__previewButton = self.buttonBox.addButton( |
46 self.__previewButton = self.buttonBox.addButton( |
46 self.tr("Preview"), QDialogButtonBox.ActionRole) |
47 self.tr("Preview"), QDialogButtonBox.ButtonRole.ActionRole) |
47 self.__previewButton.setDefault(True) |
48 self.__previewButton.setDefault(True) |
48 |
49 |
49 self.__inlinerKind = "" |
50 self.__inlinerKind = "" |
50 |
51 |
51 self._refactoring.sendJson("RequestInlineType", { |
52 self._refactoring.sendJson("RequestInlineType", { |