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

Method syncPatch

plugins/patchreview/localpatchsource.cpp:101–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101void 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
114void LocalPatchWidget::updatePatchFromEdit()
115{

Callers

nothing calls this directly

Calls 9

setCurrentIndexMethod · 0.80
setTextMethod · 0.45
commandMethod · 0.45
setUrlMethod · 0.45
fileMethod · 0.45
baseDirMethod · 0.45
isAlreadyAppliedMethod · 0.45
isEmptyMethod · 0.45
indexOfMethod · 0.45

Tested by

no test coverage detected