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

Method configureLaunchFromItem

plugins/execute/nativeappconfig.cpp:294–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292}
293
294void NativeAppConfigType::configureLaunchFromItem ( KConfigGroup cfg, KDevelop::ProjectBaseItem* item ) const
295{
296 cfg.writeEntry( ExecutePlugin::isExecutableEntry, false );
297 KDevelop::ProjectModel* model = KDevelop::ICore::self()->projectController()->projectModel();
298 cfg.writeEntry( ExecutePlugin::projectTargetEntry, model->pathFromIndex( model->indexFromItem( item ) ) );
299 cfg.writeEntry( ExecutePlugin::workingDirEntry, item->executable()->builtUrl().adjusted(QUrl::RemoveFilename) );
300 cfg.sync();
301}
302
303void NativeAppConfigType::configureLaunchFromCmdLineArguments ( KConfigGroup cfg, const QStringList& args ) const
304{

Callers 1

launchAsMethod · 0.45

Calls 7

writeEntryMethod · 0.80
projectControllerMethod · 0.80
indexFromItemMethod · 0.80
projectModelMethod · 0.45
pathFromIndexMethod · 0.45
builtUrlMethod · 0.45
executableMethod · 0.45

Tested by

no test coverage detected