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

Method updateFileNames

plugins/filetemplates/outputpage.cpp:75–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75void 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
97void OutputPagePrivate::validate()
98{

Callers 2

OutputPageMethod · 0.80
loadFileTemplateMethod · 0.80

Calls 7

constBeginMethod · 0.80
constEndMethod · 0.80
writeEntryMethod · 0.80
valueMethod · 0.45
keyMethod · 0.45
isEmptyMethod · 0.45
setUrlMethod · 0.45

Tested by

no test coverage detected