MCPcopy Create free account
hub / github.com/KDE/kdevelop / emptyHistory

Method emptyHistory

kdevplatform/documentation/documentationview.cpp:235–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235void DocumentationView::emptyHistory()
236{
237 mHistory.clear();
238 mCurrent = mHistory.end();
239 mBack->setEnabled(false);
240 mForward->setEnabled(false);
241 const bool hasProviders = (mProviders->count() > 0);
242 mHomeAction->setEnabled(hasProviders);
243 mIdentifiers->setEnabled(hasProviders);
244 if (hasProviders) {
245 mProviders->setCurrentIndex(0);
246 changedProvider(0);
247 } else {
248 updateView();
249 }
250}
251
252void DocumentationView::updateView()
253{

Callers

nothing calls this directly

Calls 5

setCurrentIndexMethod · 0.80
clearMethod · 0.45
endMethod · 0.45
setEnabledMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected