eric6/Plugins/VcsPlugins/vcsPySvn/SvnPropListDialog.py

changeset 7260
4cc6f121119a
parent 7229
53054eb5b15a
child 7360
9190402e4505
equal deleted inserted replaced
7259:7c017076c12e 7260:4cc6f121119a
12 import os 12 import os
13 13
14 import pysvn 14 import pysvn
15 15
16 from PyQt5.QtCore import pyqtSlot, QMutexLocker, Qt 16 from PyQt5.QtCore import pyqtSlot, QMutexLocker, Qt
17 from PyQt5.QtWidgets import QWidget, QHeaderView, QApplication, \ 17 from PyQt5.QtWidgets import (
18 QDialogButtonBox, QTreeWidgetItem 18 QWidget, QHeaderView, QApplication, QDialogButtonBox, QTreeWidgetItem
19 )
19 20
20 from .SvnDialogMixin import SvnDialogMixin 21 from .SvnDialogMixin import SvnDialogMixin
21 from .Ui_SvnPropListDialog import Ui_SvnPropListDialog 22 from .Ui_SvnPropListDialog import Ui_SvnPropListDialog
22 23
23 24
35 """ 36 """
36 super(SvnPropListDialog, self).__init__(parent) 37 super(SvnPropListDialog, self).__init__(parent)
37 self.setupUi(self) 38 self.setupUi(self)
38 SvnDialogMixin.__init__(self) 39 SvnDialogMixin.__init__(self)
39 40
40 self.refreshButton = \ 41 self.refreshButton = self.buttonBox.addButton(
41 self.buttonBox.addButton(self.tr("Refresh"), 42 self.tr("Refresh"), QDialogButtonBox.ActionRole)
42 QDialogButtonBox.ActionRole)
43 self.refreshButton.setToolTip( 43 self.refreshButton.setToolTip(
44 self.tr("Press to refresh the properties display")) 44 self.tr("Press to refresh the properties display"))
45 self.refreshButton.setEnabled(False) 45 self.refreshButton.setEnabled(False)
46 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) 46 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False)
47 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) 47 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True)
50 50
51 self.propsList.headerItem().setText(self.propsList.columnCount(), "") 51 self.propsList.headerItem().setText(self.propsList.columnCount(), "")
52 self.propsList.header().setSortIndicator(0, Qt.AscendingOrder) 52 self.propsList.header().setSortIndicator(0, Qt.AscendingOrder)
53 53
54 self.client = self.vcs.getClient() 54 self.client = self.vcs.getClient()
55 self.client.callback_cancel = \ 55 self.client.callback_cancel = self._clientCancelCallback
56 self._clientCancelCallback 56 self.client.callback_get_login = self._clientLoginCallback
57 self.client.callback_get_login = \ 57 self.client.callback_ssl_server_trust_prompt = (
58 self._clientLoginCallback
59 self.client.callback_ssl_server_trust_prompt = \
60 self._clientSslServerTrustPromptCallback 58 self._clientSslServerTrustPromptCallback
59 )
61 60
62 def __resort(self): 61 def __resort(self):
63 """ 62 """
64 Private method to resort the tree. 63 Private method to resort the tree.
65 """ 64 """

eric ide

mercurial