50 @param bundle name of a bundle file (string) |
50 @param bundle name of a bundle file (string) |
51 @param parent parent widget (QWidget) |
51 @param parent parent widget (QWidget) |
52 """ |
52 """ |
53 QDialog.__init__(self, parent) |
53 QDialog.__init__(self, parent) |
54 self.setupUi(self) |
54 self.setupUi(self) |
|
55 |
|
56 if mode == "log": |
|
57 self.setWindowTitle(self.trUtf8("Mercurial Log")) |
|
58 elif mode == "incoming": |
|
59 self.setWindowTitle(self.trUtf8("Mercurial Log (Incoming)")) |
|
60 elif mode == "outgoing": |
|
61 self.setWindowTitle(self.trUtf8("Mercurial Log (Outgoing)")) |
55 |
62 |
56 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) |
63 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) |
57 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) |
64 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) |
58 |
65 |
59 self.filesTree.headerItem().setText(self.filesTree.columnCount(), "") |
66 self.filesTree.headerItem().setText(self.filesTree.columnCount(), "") |