| 99 | } |
| 100 | |
| 101 | void LocalPatchWidget::syncPatch() |
| 102 | { |
| 103 | m_ui->command->setText( m_lpatch->command()); |
| 104 | m_ui->filename->setUrl( m_lpatch->file() ); |
| 105 | m_ui->baseDir->setUrl( m_lpatch->baseDir() ); |
| 106 | m_ui->applied->setCheckState( m_lpatch->isAlreadyApplied() ? Qt::Checked : Qt::Unchecked ); |
| 107 | |
| 108 | if ( m_lpatch->command().isEmpty() ) |
| 109 | m_ui->tabWidget->setCurrentIndex( m_ui->tabWidget->indexOf( m_ui->fileTab ) ); |
| 110 | else |
| 111 | m_ui->tabWidget->setCurrentIndex( m_ui->tabWidget->indexOf( m_ui->commandTab ) ); |
| 112 | } |
| 113 | |
| 114 | void LocalPatchWidget::updatePatchFromEdit() |
| 115 | { |
nothing calls this directly
no test coverage detected