| 236 | } |
| 237 | |
| 238 | void VersionPage::updateButtons(int row) |
| 239 | { |
| 240 | if (row == -1) |
| 241 | row = currentRow(); |
| 242 | auto patch = m_profile->getComponent(row); |
| 243 | ui->actionRemove->setEnabled(patch && patch->isRemovable()); |
| 244 | ui->actionMove_down->setEnabled(patch && patch->isMoveable()); |
| 245 | ui->actionMove_up->setEnabled(patch && patch->isMoveable()); |
| 246 | ui->actionChange_version->setEnabled(patch && patch->isVersionChangeable(false)); |
| 247 | ui->actionEdit->setEnabled(patch && patch->isCustom()); |
| 248 | ui->actionCustomize->setEnabled(patch && patch->isCustomizable()); |
| 249 | ui->actionRevert->setEnabled(patch && patch->isRevertible()); |
| 250 | } |
| 251 | |
| 252 | bool VersionPage::reloadPackProfile() |
| 253 | { |
nothing calls this directly
no test coverage detected