| 96 | } |
| 97 | |
| 98 | void 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 | |
| 116 | QString PlasmoidExecutionConfig::title() const |
| 117 | { |
nothing calls this directly
no test coverage detected