38 @param vcs reference to the vcs object |
38 @param vcs reference to the vcs object |
39 @param parent parent widget (QWidget) |
39 @param parent parent widget (QWidget) |
40 """ |
40 """ |
41 super(HgAnnotateDialog, self).__init__(parent) |
41 super(HgAnnotateDialog, self).__init__(parent) |
42 self.setupUi(self) |
42 self.setupUi(self) |
|
43 self.setWindowFlags(Qt.Window) |
43 |
44 |
44 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) |
45 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) |
45 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) |
46 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) |
46 |
47 |
47 self.vcs = vcs |
48 self.vcs = vcs |