| 331 | } |
| 332 | |
| 333 | void ProvidersModel::reloadProviders() |
| 334 | { |
| 335 | beginResetModel(); |
| 336 | mProviders = ICore::self()->documentationController()->documentationProviders(); |
| 337 | |
| 338 | std::sort(mProviders.begin(), mProviders.end(), |
| 339 | [](const KDevelop::IDocumentationProvider* a, const KDevelop::IDocumentationProvider* b) { |
| 340 | return a->name() < b->name(); |
| 341 | }); |
| 342 | |
| 343 | endResetModel(); |
| 344 | emit providersChanged(); |
| 345 | } |
| 346 | |
| 347 | QVariant ProvidersModel::data(const QModelIndex& index, int role) const |
| 348 | { |
nothing calls this directly
no test coverage detected