MCPcopy Create free account
hub / github.com/Faster3ck/Converseen / showGhostscriptInstallationDialog

Method showGhostscriptInstallationDialog

src/dialogmultipageeditor.cpp:157–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157void 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
180void DialogMultipageEditor::acceptDialog()
181{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected