| 61 | } |
| 62 | |
| 63 | void StashPatchSource::updatePatchFile(KDevelop::VcsJob* job) |
| 64 | { |
| 65 | auto* dvcsJob = qobject_cast<KDevelop::DVcsJob*>(job); |
| 66 | QFile f(m_patchFile.toLocalFile()); |
| 67 | QTextStream txtStream(&f); |
| 68 | |
| 69 | f.open(QIODevice::WriteOnly); |
| 70 | txtStream << dvcsJob->rawOutput(); |
| 71 | f.close(); |
| 72 | |
| 73 | emit patchChanged(); |
| 74 | } |
| 75 | |
| 76 | #include "moc_stashpatchsource.cpp" |
nothing calls this directly
no test coverage detected