23 |
23 |
24 @param currentPatch name of the current patch (string) |
24 @param currentPatch name of the current patch (string) |
25 @param patchesList list of patches to select from (list of strings) |
25 @param patchesList list of patches to select from (list of strings) |
26 @param parent reference to the parent widget (QWidget) |
26 @param parent reference to the parent widget (QWidget) |
27 """ |
27 """ |
28 super(HgQueuesRenamePatchDialog, self).__init__(parent) |
28 super().__init__(parent) |
29 self.setupUi(self) |
29 self.setupUi(self) |
30 |
30 |
31 self.currentButton.setText( |
31 self.currentButton.setText( |
32 self.tr("Current Patch ({0})").format(currentPatch)) |
32 self.tr("Current Patch ({0})").format(currentPatch)) |
33 self.nameCombo.addItems([""] + patchesList) |
33 self.nameCombo.addItems([""] + patchesList) |