| 73 | } |
| 74 | |
| 75 | void OutputPagePrivate::updateFileNames() |
| 76 | { |
| 77 | bool lower = output->lowerFilenameCheckBox->isChecked(); |
| 78 | |
| 79 | const QHash<QString, QUrl> urls = lower ? lowerCaseUrls : defaultUrls; |
| 80 | for (QHash<QString, KUrlRequester*>::const_iterator it = outputFiles.constBegin(); |
| 81 | it != outputFiles.constEnd(); ++it) |
| 82 | { |
| 83 | const QUrl url = urls.value(it.key()); |
| 84 | if (!url.isEmpty()) |
| 85 | { |
| 86 | it.value()->setUrl(url); |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | //Save the setting for next time |
| 91 | KConfigGroup codegenGroup(KSharedConfig::openConfig(), QStringLiteral("CodeGeneration")); |
| 92 | codegenGroup.writeEntry( "LowerCaseFilenames", output->lowerFilenameCheckBox->isChecked() ); |
| 93 | |
| 94 | validate(); |
| 95 | } |
| 96 | |
| 97 | void OutputPagePrivate::validate() |
| 98 | { |
no test coverage detected