299 def __clearHistoryDialog(self): |
299 def __clearHistoryDialog(self): |
300 """ |
300 """ |
301 Private slot to clear the history. |
301 Private slot to clear the history. |
302 """ |
302 """ |
303 if self.__historyManager is not None and \ |
303 if self.__historyManager is not None and \ |
304 E5MessageBox.question(self, |
304 E5MessageBox.yesNo(self, |
305 self.trUtf8("Clear History"), |
305 self.trUtf8("Clear History"), |
306 self.trUtf8("""Do you want to clear the history?"""), |
306 self.trUtf8("""Do you want to clear the history?""")): |
307 QMessageBox.StandardButtons(\ |
|
308 QMessageBox.No | \ |
|
309 QMessageBox.Yes), |
|
310 QMessageBox.No) == QMessageBox.Yes: |
|
311 self.__historyManager.clear() |
307 self.__historyManager.clear() |