335 self.cancelled = False |
335 self.cancelled = False |
336 self.buttonBox.button(QDialogButtonBox.StandardButton.Close).setEnabled(False) |
336 self.buttonBox.button(QDialogButtonBox.StandardButton.Close).setEnabled(False) |
337 self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel).setEnabled(True) |
337 self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel).setEnabled(True) |
338 self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel).setDefault(True) |
338 self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel).setDefault(True) |
339 |
339 |
340 def closeEvent(self, evt): |
340 def closeEvent(self, _evt): |
341 """ |
341 """ |
342 Protected method to handle the close event. |
342 Protected method to handle the close event. |
343 |
343 |
344 @param evt reference to the close event |
344 @param _evt reference to the close event (unused) |
345 @type QCloseEvent |
345 @type QCloseEvent |
346 """ |
346 """ |
347 self.cancelled = True |
347 self.cancelled = True |
348 # The rest is done by the __populateLists() method. |
348 # The rest is done by the __populateLists() method. |
349 |
349 |