| 78 | } |
| 79 | |
| 80 | void 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 | |
| 98 | void PlasmoidExecutionConfig::loadFromConfiguration(const KConfigGroup& cfg, KDevelop::IProject* ) |
| 99 | { |
nothing calls this directly
no test coverage detected