| 237 | } |
| 238 | |
| 239 | void |
| 240 | ProcessHandler::onProcessCanceled() |
| 241 | { |
| 242 | Q_EMIT processCanceled(); |
| 243 | |
| 244 | if (!_bgProcessInputSocket) { |
| 245 | _earlyCancel = true; |
| 246 | } else { |
| 247 | _bgProcessInputSocket->write( ( QString::fromUtf8(kAbortRenderingStringShort) + QLatin1Char('\n') ).toUtf8() ); |
| 248 | _bgProcessInputSocket->flush(); |
| 249 | } |
| 250 | } |
| 251 | |
| 252 | void |
| 253 | ProcessHandler::onProcessError(QProcess::ProcessError err) |