| 77 | |
| 78 | private: |
| 79 | void setFileInfo( QStandardItem *item, unsigned int hunksNum ) { |
| 80 | const auto url = item->index().data(VcsFileChangesModel::UrlRole).toUrl(); |
| 81 | const QString path = ICore::self()->projectController()->prettyFileName(url, KDevelop::IProjectController::FormatPlain); |
| 82 | const QString newText = i18ncp( "%1: number of changed hunks, %2: file name", |
| 83 | "%2 (1 hunk)", "%2 (%1 hunks)", hunksNum, |
| 84 | path); |
| 85 | item->setText( newText ); |
| 86 | } |
| 87 | }; |
| 88 | |
| 89 | PatchReviewToolView::PatchReviewToolView( QWidget* parent, PatchReviewPlugin* plugin ) |
nothing calls this directly
no test coverage detected