Plugins/VcsPlugins/vcsPySvn/SvnLogBrowserDialog.py

changeset 3279
8df9706ef7f4
parent 3273
075758282fdb
child 3287
c3d784c057b3
equal deleted inserted replaced
3278:243e6075af82 3279:8df9706ef7f4
10 import os 10 import os
11 11
12 import pysvn 12 import pysvn
13 13
14 from PyQt4.QtCore import QMutexLocker, QDate, QRegExp, Qt, pyqtSlot 14 from PyQt4.QtCore import QMutexLocker, QDate, QRegExp, Qt, pyqtSlot
15 from PyQt4.QtGui import QCursor, QHeaderView, QDialog, QApplication, \ 15 from PyQt4.QtGui import QCursor, QHeaderView, QWidget, QApplication, \
16 QDialogButtonBox, QTreeWidgetItem 16 QDialogButtonBox, QTreeWidgetItem
17 17
18 from E5Gui import E5MessageBox 18 from E5Gui import E5MessageBox
19 19
20 from .SvnUtilities import formatTime, dateFromTime_t 20 from .SvnUtilities import formatTime, dateFromTime_t
21 from .SvnDialogMixin import SvnDialogMixin 21 from .SvnDialogMixin import SvnDialogMixin
22 22
23 from .Ui_SvnLogBrowserDialog import Ui_SvnLogBrowserDialog 23 from .Ui_SvnLogBrowserDialog import Ui_SvnLogBrowserDialog
24 24
25 25
26 class SvnLogBrowserDialog(QDialog, SvnDialogMixin, Ui_SvnLogBrowserDialog): 26 class SvnLogBrowserDialog(QWidget, SvnDialogMixin, Ui_SvnLogBrowserDialog):
27 """ 27 """
28 Class implementing a dialog to browse the log history. 28 Class implementing a dialog to browse the log history.
29 """ 29 """
30 def __init__(self, vcs, isFile=False, parent=None): 30 def __init__(self, vcs, isFile=False, parent=None):
31 """ 31 """
36 @param parent parent widget (QWidget) 36 @param parent parent widget (QWidget)
37 """ 37 """
38 super().__init__(parent) 38 super().__init__(parent)
39 self.setupUi(self) 39 self.setupUi(self)
40 SvnDialogMixin.__init__(self) 40 SvnDialogMixin.__init__(self)
41 self.setWindowFlags(self.windowFlags() | Qt.WindowMinMaxButtonsHint)
42 41
43 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) 42 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False)
44 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) 43 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True)
45 44
46 self.filesTree.headerItem().setText(self.filesTree.columnCount(), "") 45 self.filesTree.headerItem().setText(self.filesTree.columnCount(), "")

eric ide

mercurial