| 424 | } |
| 425 | |
| 426 | void 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 | |
| 442 | void GrepOutputView::updateCheckable() |
| 443 | { |
nothing calls this directly
no test coverage detected