MCPcopy Create free account
hub / github.com/IJHack/QtPass / processError

Method processError

src/qtpass.cpp:271–295  ·  view source on GitHub ↗

* @brief QtPass::processError something went wrong * @param error */

Source from the content-addressed store, hash-verified

269 * @param error
270 */
271void QtPass::processError(QProcess::ProcessError error) {
272 QString errorString;
273 switch (error) {
274 case QProcess::FailedToStart:
275 errorString = tr("QProcess::FailedToStart");
276 break;
277 case QProcess::Crashed:
278 errorString = tr("QProcess::Crashed");
279 break;
280 case QProcess::Timedout:
281 errorString = tr("QProcess::Timedout");
282 break;
283 case QProcess::ReadError:
284 errorString = tr("QProcess::ReadError");
285 break;
286 case QProcess::WriteError:
287 errorString = tr("QProcess::WriteError");
288 break;
289 case QProcess::UnknownError:
290 errorString = tr("QProcess::UnknownError");
291 break;
292 }
293 m_mainWindow->flashText(errorString, true);
294 m_mainWindow->setUiElementsEnabled(true);
295}
296
297/**
298 * @brief Handles process error exit.

Callers

nothing calls this directly

Calls 2

flashTextMethod · 0.80
setUiElementsEnabledMethod · 0.80

Tested by

no test coverage detected