13 |
13 |
14 from PyQt5.QtCore import pyqtSlot, Qt |
14 from PyQt5.QtCore import pyqtSlot, Qt |
15 from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QListWidgetItem, \ |
15 from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QListWidgetItem, \ |
16 QAbstractButton |
16 QAbstractButton |
17 |
17 |
18 from Ui_ChangeSignatureDialog import Ui_ChangeSignatureDialog |
18 from .Ui_ChangeSignatureDialog import Ui_ChangeSignatureDialog |
19 from RefactoringDialogBase import RefactoringDialogBase |
19 from .RefactoringDialogBase import RefactoringDialogBase |
20 |
20 |
21 |
21 |
22 class ChangeSignatureDialog(RefactoringDialogBase, Ui_ChangeSignatureDialog): |
22 class ChangeSignatureDialog(RefactoringDialogBase, Ui_ChangeSignatureDialog): |
23 """ |
23 """ |
24 Class implementing the Change Signature dialog. |
24 Class implementing the Change Signature dialog. |
160 @pyqtSlot() |
160 @pyqtSlot() |
161 def on_addButton_clicked(self): |
161 def on_addButton_clicked(self): |
162 """ |
162 """ |
163 Private slot to add a new parameter. |
163 Private slot to add a new parameter. |
164 """ |
164 """ |
165 from AddParameterDialog import AddParameterDialog |
165 from .AddParameterDialog import AddParameterDialog |
166 dlg = AddParameterDialog(self) |
166 dlg = AddParameterDialog(self) |
167 if dlg.exec_() == QDialog.Accepted: |
167 if dlg.exec_() == QDialog.Accepted: |
168 name, default, value = dlg.getData() |
168 name, default, value = dlg.getData() |
169 if default: |
169 if default: |
170 s = "{0}={1}".format(name, default) |
170 s = "{0}={1}".format(name, default) |