36 |
36 |
37 def exportSource(self): |
37 def exportSource(self): |
38 """ |
38 """ |
39 Public method performing the export. |
39 Public method performing the export. |
40 """ |
40 """ |
41 filename = self._getFileName(self.trUtf8("ODT Files (*.odt)")) |
41 filename = self._getFileName(self.tr("ODT Files (*.odt)")) |
42 if not filename: |
42 if not filename: |
43 return |
43 return |
44 |
44 |
45 QApplication.setOverrideCursor(QCursor(Qt.WaitCursor)) |
45 QApplication.setOverrideCursor(QCursor(Qt.WaitCursor)) |
46 QApplication.processEvents() |
46 QApplication.processEvents() |
70 ok = writer.write(doc) |
70 ok = writer.write(doc) |
71 QApplication.restoreOverrideCursor() |
71 QApplication.restoreOverrideCursor() |
72 if not ok: |
72 if not ok: |
73 E5MessageBox.critical( |
73 E5MessageBox.critical( |
74 self.editor, |
74 self.editor, |
75 self.trUtf8("Export source"), |
75 self.tr("Export source"), |
76 self.trUtf8( |
76 self.tr( |
77 """<p>The source could not be exported to""" |
77 """<p>The source could not be exported to""" |
78 """ <b>{0}</b>.</p>""").format(filename)) |
78 """ <b>{0}</b>.</p>""").format(filename)) |