| 124 | } |
| 125 | |
| 126 | void ProjectFilterConfigPage::selectionChanged() |
| 127 | { |
| 128 | bool hasSelection = m_ui->filters->currentIndex().isValid(); |
| 129 | int row = -1; |
| 130 | if (hasSelection) { |
| 131 | row = m_ui->filters->currentIndex().row(); |
| 132 | } |
| 133 | m_ui->remove->setEnabled(hasSelection); |
| 134 | |
| 135 | m_ui->moveDown->setEnabled(hasSelection && row != m_model->rowCount() - 1); |
| 136 | m_ui->moveUp->setEnabled(hasSelection && row != 0); |
| 137 | } |
| 138 | |
| 139 | void ProjectFilterConfigPage::add() |
| 140 | { |
nothing calls this directly
no test coverage detected