27 @type QWidget |
27 @type QWidget |
28 """ |
28 """ |
29 super(HgCloseHeadSelectionDialog, self).__init__(parent) |
29 super(HgCloseHeadSelectionDialog, self).__init__(parent) |
30 self.setupUi(self) |
30 self.setupUi(self) |
31 |
31 |
32 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) |
32 self.buttonBox.button( |
33 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) |
33 QDialogButtonBox.StandardButton.Cancel).setDefault(True) |
|
34 self.buttonBox.button( |
|
35 QDialogButtonBox.StandardButton.Ok).setEnabled(False) |
34 |
36 |
35 heads = self.__getHeads(vcs) |
37 heads = self.__getHeads(vcs) |
36 for revision, branch in heads: |
38 for revision, branch in heads: |
37 QTreeWidgetItem(self.headsList, [revision, branch]) |
39 QTreeWidgetItem(self.headsList, [revision, branch]) |
38 |
40 |