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

Method saveToConfiguration

plugins/executeplasmoid/plasmoidexecutionconfig.cpp:80–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80void PlasmoidExecutionConfig::saveToConfiguration( KConfigGroup cfg, KDevelop::IProject* project ) const
81{
82 Q_UNUSED( project );
83 cfg.writeEntry("PlasmoidIdentifier", identifier->lineEdit()->text());
84 QStringList args{
85 QStringLiteral("--formfactor"),
86 formFactor->currentText(),
87 };
88 if(!themes->currentText().isEmpty()) {
89 args += QStringLiteral("--theme");
90 args += themes->currentText();
91 }
92 cfg.writeEntry("Arguments", args);
93
94 QVariantList deps = dependencies->dependencies();
95 cfg.writeEntry( "Dependencies", KDevelop::qvariantToString( QVariant( deps ) ) );
96}
97
98void PlasmoidExecutionConfig::loadFromConfiguration(const KConfigGroup& cfg, KDevelop::IProject* )
99{

Callers

nothing calls this directly

Calls 6

qvariantToStringFunction · 0.85
writeEntryMethod · 0.80
QVariantClass · 0.50
textMethod · 0.45
isEmptyMethod · 0.45
dependenciesMethod · 0.45

Tested by

no test coverage detected