| 137 | } |
| 138 | |
| 139 | void KFFMpegThumbnailer::writeConfiguration(const QWidget* /*configurationWidget*/) |
| 140 | { |
| 141 | KFFMpegThumbnailerSettings* settings = KFFMpegThumbnailerSettings::self(); |
| 142 | |
| 143 | settings->setAddFilmstrip(m_addFilmStripCheckBox->isChecked()); |
| 144 | settings->setUseMetadataCovers(m_useMetadataCheckBox->isChecked()); |
| 145 | settings->setUseSmartSelection(m_useSmartSelectionCheckBox->isChecked()); |
| 146 | |
| 147 | const QStringList seekPercentagesStrList = m_sequenceSeekPercentagesLineEdit->text() |
| 148 | .split(QRegExp("(\\s*,\\s*)|\\s+"), Qt::SkipEmptyParts); |
| 149 | QList<int> seekPercentages; |
| 150 | bool seekPercentagesValid = true; |
| 151 | |
| 152 | for (const QString str : seekPercentagesStrList) { |
| 153 | const int sp = str.toInt(&seekPercentagesValid); |
| 154 | |
| 155 | if (!seekPercentagesValid) { |
| 156 | break; |
| 157 | } |
| 158 | |
| 159 | seekPercentages << sp; |
| 160 | } |
| 161 | |
| 162 | if (seekPercentagesValid) { |
| 163 | settings->setSequenceSeekPercentages(seekPercentages); |
| 164 | } |
| 165 | |
| 166 | settings->setCacheSize(m_thumbCacheSizeSpinBox->value()); |
| 167 | thumbCache.setMaxCost(m_thumbCacheSizeSpinBox->value()); |
| 168 | |
| 169 | settings->save(); |
| 170 | } |
nothing calls this directly
no outgoing calls
no test coverage detected