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

Method loadFromConfiguration

plugins/executeplasmoid/plasmoidexecutionconfig.cpp:98–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98void PlasmoidExecutionConfig::loadFromConfiguration(const KConfigGroup& cfg, KDevelop::IProject* )
99{
100 bool b = blockSignals( true );
101 identifier->lineEdit()->setText(cfg.readEntry("PlasmoidIdentifier", ""));
102 blockSignals( b );
103
104 QStringList arguments = cfg.readEntry("Arguments", QStringList());
105 int idxFormFactor = arguments.indexOf(QStringLiteral("--formfactor"))+1;
106 if(idxFormFactor>0)
107 formFactor->setCurrentIndex(formFactor->findText(arguments[idxFormFactor]));
108
109 int idxTheme = arguments.indexOf(QStringLiteral("--theme"))+1;
110 if(idxTheme>0)
111 themes->setCurrentIndex(themes->findText(arguments[idxTheme]));
112
113 dependencies->setDependencies( KDevelop::stringToQVariant( cfg.readEntry( "Dependencies", QString() ) ).toList());
114}
115
116QString PlasmoidExecutionConfig::title() const
117{

Callers

nothing calls this directly

Calls 9

QStringListClass · 0.85
stringToQVariantFunction · 0.85
readEntryMethod · 0.80
setCurrentIndexMethod · 0.80
setDependenciesMethod · 0.80
QStringClass · 0.50
setTextMethod · 0.45
indexOfMethod · 0.45
toListMethod · 0.45

Tested by

no test coverage detected