| 61 | |
| 62 | |
| 63 | QString formatFilePath(QString path) |
| 64 | { |
| 65 | // If behind an XDG document portal, use the host file path |
| 66 | path = getHostPath(std::move(path)); |
| 67 | path = QDir::toNativeSeparators(path); |
| 68 | |
| 69 | if (qGuiApp->layoutDirection() == Qt::RightToLeft) { |
| 70 | return LRI_MARK + path + PDI_MARK; |
| 71 | } |
| 72 | return path; |
| 73 | } |
| 74 | |
| 75 | QString showPdfExportDialog(QWidget* parent, const QString& sourceFilePath) |
| 76 | { |
no test coverage detected