18 QApplication, |
18 QApplication, |
19 QDialogButtonBox, |
19 QDialogButtonBox, |
20 QTreeWidgetItem, |
20 QTreeWidgetItem, |
21 ) |
21 ) |
22 |
22 |
23 from EricWidgets import EricMessageBox |
23 from eric7.EricWidgets import EricMessageBox |
24 from EricGui.EricOverrideCursor import EricOverrideCursorProcess |
24 from eric7.EricGui.EricOverrideCursor import EricOverrideCursorProcess |
25 |
25 |
26 from .Ui_SvnLogBrowserDialog import Ui_SvnLogBrowserDialog |
26 from .Ui_SvnLogBrowserDialog import Ui_SvnLogBrowserDialog |
27 |
27 |
28 import Preferences |
28 from eric7 import Preferences |
29 import UI.PixmapCache |
29 from eric7.EricGui import EricPixmapCache |
30 from Globals import strToQByteArray |
30 from eric7.Globals import strToQByteArray |
31 |
31 |
32 |
32 |
33 class SvnLogBrowserDialog(QWidget, Ui_SvnLogBrowserDialog): |
33 class SvnLogBrowserDialog(QWidget, Ui_SvnLogBrowserDialog): |
34 """ |
34 """ |
35 Class implementing a dialog to browse the log history. |
35 Class implementing a dialog to browse the log history. |
48 self.__position = QPoint() |
48 self.__position = QPoint() |
49 |
49 |
50 self.buttonBox.button(QDialogButtonBox.StandardButton.Close).setEnabled(False) |
50 self.buttonBox.button(QDialogButtonBox.StandardButton.Close).setEnabled(False) |
51 self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel).setDefault(True) |
51 self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel).setDefault(True) |
52 |
52 |
53 self.upButton.setIcon(UI.PixmapCache.getIcon("1uparrow")) |
53 self.upButton.setIcon(EricPixmapCache.getIcon("1uparrow")) |
54 self.downButton.setIcon(UI.PixmapCache.getIcon("1downarrow")) |
54 self.downButton.setIcon(EricPixmapCache.getIcon("1downarrow")) |
55 |
55 |
56 self.filesTree.headerItem().setText(self.filesTree.columnCount(), "") |
56 self.filesTree.headerItem().setText(self.filesTree.columnCount(), "") |
57 self.filesTree.header().setSortIndicator(0, Qt.SortOrder.AscendingOrder) |
57 self.filesTree.header().setSortIndicator(0, Qt.SortOrder.AscendingOrder) |
58 |
58 |
59 self.vcs = vcs |
59 self.vcs = vcs |