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

Method saveToConfiguration

plugins/execute/nativeappconfig.cpp:163–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163void NativeAppConfigPage::saveToConfiguration( KConfigGroup cfg, KDevelop::IProject* project ) const
164{
165 Q_UNUSED( project );
166 cfg.writeEntry( ExecutePlugin::isExecutableEntry, executableRadio->isChecked() );
167 cfg.writeEntry( ExecutePlugin::executableEntry, executablePath->url() );
168 cfg.writeEntry( ExecutePlugin::projectTargetEntry, projectTarget->currentItemPath() );
169 cfg.writeEntry( ExecutePlugin::argumentsEntry, arguments->text() );
170 cfg.writeEntry( ExecutePlugin::workingDirEntry, workingDirectory->url() );
171 cfg.writeEntry( ExecutePlugin::environmentProfileEntry, environment->currentProfile() );
172 cfg.writeEntry( ExecutePlugin::useTerminalEntry, runInTerminal->isChecked() );
173 cfg.writeEntry( ExecutePlugin::terminalEntry, terminal->currentText() );
174 cfg.writeEntry( ExecutePlugin::dependencyActionEntry, dependencyAction->itemData( dependencyAction->currentIndex() ).toString() );
175 cfg.writeEntry( ExecutePlugin::killBeforeExecutingAgain, killBeforeStartingAgain->itemData( killBeforeStartingAgain->currentIndex() ).toInt() );
176 QVariantList deps = dependencies->dependencies();
177 cfg.writeEntry( ExecutePlugin::dependencyEntry, KDevelop::qvariantToString( QVariant( deps ) ) );
178}
179
180QString NativeAppConfigPage::title() const
181{

Callers

nothing calls this directly

Calls 12

qvariantToStringFunction · 0.85
writeEntryMethod · 0.80
currentItemPathMethod · 0.80
currentProfileMethod · 0.80
toIntMethod · 0.80
QVariantClass · 0.50
urlMethod · 0.45
textMethod · 0.45
toStringMethod · 0.45
itemDataMethod · 0.45
currentIndexMethod · 0.45
dependenciesMethod · 0.45

Tested by

no test coverage detected