42 @param parent reference to the parent widget (QWidget) |
42 @param parent reference to the parent widget (QWidget) |
43 @exception ValueError raised to indicate an invalid dialog mode |
43 @exception ValueError raised to indicate an invalid dialog mode |
44 """ |
44 """ |
45 super(HgBookmarksInOutDialog, self).__init__(parent) |
45 super(HgBookmarksInOutDialog, self).__init__(parent) |
46 self.setupUi(self) |
46 self.setupUi(self) |
|
47 self.setWindowFlags(Qt.Window) |
47 |
48 |
48 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) |
49 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) |
49 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) |
50 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) |
50 |
51 |
51 if mode not in [self.INCOMING, self.OUTGOING]: |
52 if mode not in [self.INCOMING, self.OUTGOING]: |