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

Method setType

kdevplatform/shell/launchconfiguration.cpp:101–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101void LaunchConfiguration::setType(const QString& typeId)
102{
103 Q_D(LaunchConfiguration);
104
105 LaunchConfigurationType* t = Core::self()->runControllerInternal()->launchConfigurationTypeForId( typeId );
106 // If this ever happens something seriously screwed in the launch config dialog, as that is
107 // the only place from where this method should be called
108 Q_ASSERT(t);
109 if( t )
110 {
111 d->baseGroup.deleteGroup(QStringLiteral("Data"));
112 d->type = t;
113 d->baseGroup.writeEntry(LaunchConfigurationTypeEntry(), d->type->id());
114 d->baseGroup.sync();
115 emit typeChanged( t );
116 }
117}
118
119void LaunchConfiguration::save()
120{

Callers 1

setDataMethod · 0.45

Calls 4

runControllerInternalMethod · 0.80
writeEntryMethod · 0.80
idMethod · 0.45

Tested by

no test coverage detected