forked from qt-creator/qt-creator
C++-Settings/License template: Add %FILENAME%, %CLASS% placeholders.
... for doxygen. Change logic for known empty keywords to be replaced by an empty string. Task-number: QTCREATORBUG-1854
This commit is contained in:
@@ -81,13 +81,12 @@ Core::GeneratedFiles
|
||||
const ConsoleAppWizardDialog *wizard = qobject_cast< const ConsoleAppWizardDialog *>(w);
|
||||
const QtProjectParameters params = wizard->parameters();
|
||||
const QString projectPath = params.projectPath();
|
||||
const QString license = CppTools::AbstractEditorSupport::licenseTemplate();
|
||||
|
||||
// Create files: Source
|
||||
|
||||
const QString sourceFileName = Core::BaseFileWizard::buildFileName(projectPath, QLatin1String(mainSourceFileC), sourceSuffix());
|
||||
Core::GeneratedFile source(sourceFileName);
|
||||
source.setContents(license + QLatin1String(mainCppC));
|
||||
source.setContents(CppTools::AbstractEditorSupport::licenseTemplate(sourceFileName) + QLatin1String(mainCppC));
|
||||
source.setAttributes(Core::GeneratedFile::OpenEditorAttribute);
|
||||
// Create files: Profile
|
||||
const QString profileName = Core::BaseFileWizard::buildFileName(projectPath, params.fileName, profileSuffix());
|
||||
|
||||
Reference in New Issue
Block a user