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

Method updateApplyState

plugins/grepview/grepoutputview.cpp:426–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

424}
425
426void GrepOutputView::updateApplyState(const QModelIndex& topLeft, const QModelIndex& bottomRight)
427{
428 Q_UNUSED(bottomRight);
429
430 if (!model() || !model()->hasResults()) {
431 applyButton->setEnabled(false);
432 return;
433 }
434
435 // we only care about the root item
436 if(!topLeft.parent().isValid())
437 {
438 applyButton->setEnabled(topLeft.data(Qt::CheckStateRole) != Qt::Unchecked && model()->itemsCheckable());
439 }
440}
441
442void GrepOutputView::updateCheckable()
443{

Callers

nothing calls this directly

Calls 7

modelFunction · 0.85
hasResultsMethod · 0.80
itemsCheckableMethod · 0.80
setEnabledMethod · 0.45
isValidMethod · 0.45
parentMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected