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 = QMessageBox.question(self, |
95 res = E5MessageBox.question(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 QMessageBox.StandardButtons(\ |
99 QMessageBox.No | \ |
99 QMessageBox.No | \ |
100 QMessageBox.Yes), |
100 QMessageBox.Yes), |