9 |
9 |
10 from __future__ import unicode_literals |
10 from __future__ import unicode_literals |
11 |
11 |
12 import copy |
12 import copy |
13 |
13 |
14 from PyQt4.QtCore import pyqtSlot, Qt |
14 from PyQt5.QtCore import pyqtSlot, Qt |
15 from PyQt4.QtGui import QDialog, QDialogButtonBox, QListWidgetItem, \ |
15 from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QListWidgetItem, \ |
16 QAbstractButton |
16 QAbstractButton |
17 |
17 |
18 import rope.refactor.change_signature |
18 import rope.refactor.change_signature |
19 |
19 |
20 from Ui_ChangeSignatureDialog import Ui_ChangeSignatureDialog |
20 from Ui_ChangeSignatureDialog import Ui_ChangeSignatureDialog |
48 self.__definition_info = self.__signature.get_args() |
48 self.__definition_info = self.__signature.get_args() |
49 self.__to_be_removed = [] |
49 self.__to_be_removed = [] |
50 |
50 |
51 self.__okButton = self.buttonBox.button(QDialogButtonBox.Ok) |
51 self.__okButton = self.buttonBox.button(QDialogButtonBox.Ok) |
52 self.__previewButton = self.buttonBox.addButton( |
52 self.__previewButton = self.buttonBox.addButton( |
53 self.trUtf8("Preview"), QDialogButtonBox.ActionRole) |
53 self.tr("Preview"), QDialogButtonBox.ActionRole) |
54 self.__previewButton.setDefault(True) |
54 self.__previewButton.setDefault(True) |
55 |
55 |
56 # populate the parameters list |
56 # populate the parameters list |
57 for arg, default in self.__definition_info: |
57 for arg, default in self.__definition_info: |
58 if default is None: |
58 if default is None: |