29 """ |
29 """ |
30 super(HgQueuesRenamePatchDialog, self).__init__(parent) |
30 super(HgQueuesRenamePatchDialog, self).__init__(parent) |
31 self.setupUi(self) |
31 self.setupUi(self) |
32 |
32 |
33 self.currentButton.setText( |
33 self.currentButton.setText( |
34 self.trUtf8("Current Patch ({0})").format(currentPatch)) |
34 self.tr("Current Patch ({0})").format(currentPatch)) |
35 self.nameCombo.addItems([""] + patchesList) |
35 self.nameCombo.addItems([""] + patchesList) |
36 |
36 |
37 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) |
37 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) |
|
38 |
|
39 msh = self.minimumSizeHint() |
|
40 self.resize(max(self.width(), msh.width()), msh.height()) |
38 |
41 |
39 def __updateUI(self): |
42 def __updateUI(self): |
40 """ |
43 """ |
41 Private slot to update the UI. |
44 Private slot to update the UI. |
42 """ |
45 """ |