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

Method setTool

plugins/custom-buildsystem/configwidget.cpp:61–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61void ConfigWidget::setTool(const CustomBuildSystemTool& tool)
62{
63 bool b = ui->enableAction->blockSignals( true );
64 ui->enableAction->setChecked( tool.enabled );
65 ui->enableAction->blockSignals( b );
66
67 ui->actionArguments->setText( tool.arguments );
68 ui->actionArguments->setEnabled( tool.enabled );
69 ui->actionExecutable->setUrl( tool.executable );
70 ui->actionExecutable->setEnabled( tool.enabled );
71 ui->actionEnvironment->setCurrentProfile( tool.envGrp );
72 ui->actionEnvironment->setEnabled( tool.enabled );
73 ui->execLabel->setEnabled( tool.enabled );
74 ui->argLabel->setEnabled( tool.enabled );
75 ui->envLabel->setEnabled( tool.enabled );
76}
77
78void ConfigWidget::changeAction( int idx )
79{

Callers

nothing calls this directly

Calls 4

setTextMethod · 0.45
setEnabledMethod · 0.45
setUrlMethod · 0.45
setCurrentProfileMethod · 0.45

Tested by

no test coverage detected