| 26 | |
| 27 | |
| 28 | SourceFormatterJob::SourceFormatterJob(SourceFormatterController* sourceFormatterController) |
| 29 | : KJob(sourceFormatterController) |
| 30 | , m_sourceFormatterController(sourceFormatterController) |
| 31 | , m_workState(WorkIdle) |
| 32 | , m_fileIndex(0) |
| 33 | { |
| 34 | setCapabilities(Killable); |
| 35 | // set name for job listing |
| 36 | setObjectName(i18n("Reformatting")); |
| 37 | |
| 38 | KDevelop::ICore::self()->uiController()->registerStatus(this); |
| 39 | |
| 40 | connect(this, &SourceFormatterJob::finished, this, [this]() { |
| 41 | emit hideProgress(this); |
| 42 | }); |
| 43 | } |
| 44 | |
| 45 | QString SourceFormatterJob::statusName() const |
| 46 | { |
nothing calls this directly
no test coverage detected