UI/EmailDialog.py

changeset 538
7f1a56e80124
parent 537
72b32daeb8d6
child 541
00e1a5d060c5
equal deleted inserted replaced
537:72b32daeb8d6 538:7f1a56e80124
104 Re-implemented to handle the user pressing the escape key. 104 Re-implemented to handle the user pressing the escape key.
105 105
106 @param ev key event (QKeyEvent) 106 @param ev key event (QKeyEvent)
107 """ 107 """
108 if ev.key() == Qt.Key_Escape: 108 if ev.key() == Qt.Key_Escape:
109 res = QMessageBox.question(self, 109 res = E5MessageBox.question(self,
110 self.trUtf8("Close dialog"), 110 self.trUtf8("Close dialog"),
111 self.trUtf8("""Do you really want to close the dialog?"""), 111 self.trUtf8("""Do you really want to close the dialog?"""),
112 QMessageBox.StandardButtons(\ 112 QMessageBox.StandardButtons(\
113 QMessageBox.No | \ 113 QMessageBox.No | \
114 QMessageBox.Yes), 114 QMessageBox.Yes),
127 127
128 def on_buttonBox_rejected(self): 128 def on_buttonBox_rejected(self):
129 """ 129 """
130 Private slot to handle the rejected signal of the button box. 130 Private slot to handle the rejected signal of the button box.
131 """ 131 """
132 res = QMessageBox.question(self, 132 res = E5MessageBox.question(self,
133 self.trUtf8("Close dialog"), 133 self.trUtf8("Close dialog"),
134 self.trUtf8("""Do you really want to close the dialog?"""), 134 self.trUtf8("""Do you really want to close the dialog?"""),
135 QMessageBox.StandardButtons(\ 135 QMessageBox.StandardButtons(\
136 QMessageBox.No | \ 136 QMessageBox.No | \
137 QMessageBox.Yes), 137 QMessageBox.Yes),

eric ide

mercurial