90 Re-implemented to handle the user pressing the escape key. |
90 Re-implemented to handle the user pressing the escape key. |
91 |
91 |
92 @param ev key event (QKeyEvent) |
92 @param ev key event (QKeyEvent) |
93 """ |
93 """ |
94 if ev.key() == Qt.Key_Escape: |
94 if ev.key() == Qt.Key_Escape: |
95 res = E5MessageBox.question(self, |
95 res = E5MessageBox.yesNo(self, |
96 self.trUtf8("Close dialog"), |
96 self.trUtf8("Close dialog"), |
97 self.trUtf8("""Do you really want to close the dialog?"""), |
97 self.trUtf8("""Do you really want to close the dialog?""")) |
98 QMessageBox.StandardButtons(\ |
98 if not res: |
99 QMessageBox.No | \ |
|
100 QMessageBox.Yes), |
|
101 QMessageBox.No) |
|
102 if res == QMessageBox.Yes: |
|
103 self.reject() |
99 self.reject() |
104 |
100 |
105 @pyqtSlot() |
101 @pyqtSlot() |
106 def on_helpButton_clicked(self): |
102 def on_helpButton_clicked(self): |
107 """ |
103 """ |