| 155 | } |
| 156 | |
| 157 | void DialogMultipageEditor::showGhostscriptInstallationDialog() |
| 158 | { |
| 159 | const QString message = tr( |
| 160 | "In order to perform the conversion of <b>PDF</b> files to images, <b>Ghostscript for Windows</b> must be installed on your system.<br><br> \ |
| 161 | Please install the correct version of <b>Ghostscript</b>.<br> \ |
| 162 | Click on the <b>Help</b> button for more details." |
| 163 | ); |
| 164 | |
| 165 | const int response = QMessageBox::warning( |
| 166 | this, |
| 167 | QApplication::applicationName(), |
| 168 | message, |
| 169 | QMessageBox::Help | QMessageBox::Cancel |
| 170 | ); |
| 171 | |
| 172 | if (response == QMessageBox::Help) { |
| 173 | const QUrl helpUrl("https://converseen.fasterland.net/converseen-can-convert-pdf-as-image-files/#windows"); |
| 174 | if (!QDesktopServices::openUrl(helpUrl)) { |
| 175 | qWarning() << "Failed to open help URL:" << helpUrl.toString(); |
| 176 | } |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | void DialogMultipageEditor::acceptDialog() |
| 181 | { |
nothing calls this directly
no outgoing calls
no test coverage detected