eric6/Plugins/VcsPlugins/vcsMercurial/HgSummaryDialog.py

changeset 8143
2c730d5fd177
parent 7970
c4ee8a81584c
child 8218
7c09585bd960
equal deleted inserted replaced
8141:27f636beebad 8143:2c730d5fd177
28 """ 28 """
29 super(HgSummaryDialog, self).__init__(parent) 29 super(HgSummaryDialog, self).__init__(parent)
30 self.setupUi(self) 30 self.setupUi(self)
31 31
32 self.refreshButton = self.buttonBox.addButton( 32 self.refreshButton = self.buttonBox.addButton(
33 self.tr("Refresh"), QDialogButtonBox.ActionRole) 33 self.tr("Refresh"), QDialogButtonBox.ButtonRole.ActionRole)
34 self.refreshButton.setToolTip( 34 self.refreshButton.setToolTip(
35 self.tr("Press to refresh the summary display")) 35 self.tr("Press to refresh the summary display"))
36 self.refreshButton.setEnabled(False) 36 self.refreshButton.setEnabled(False)
37 37
38 self.vcs = vcs 38 self.vcs = vcs
74 """ 74 """
75 Private slot called by a button of the button box clicked. 75 Private slot called by a button of the button box clicked.
76 76
77 @param button button that was clicked (QAbstractButton) 77 @param button button that was clicked (QAbstractButton)
78 """ 78 """
79 if button == self.buttonBox.button(QDialogButtonBox.Close): 79 if button == self.buttonBox.button(
80 QDialogButtonBox.StandardButton.Close
81 ):
80 self.close() 82 self.close()
81 elif button == self.refreshButton: 83 elif button == self.refreshButton:
82 self.on_refreshButton_clicked() 84 self.on_refreshButton_clicked()
83 85
84 @pyqtSlot() 86 @pyqtSlot()

eric ide

mercurial