forked from qt-creator/qt-creator
Adapt generated header guards to the filename
Use _HPP for example for .hpp files, for example. Based on simply putting the chosen extension in uppercase.
This commit is contained in:
@@ -73,7 +73,7 @@ bool FormClassWizardParameters::generateCpp(QString *header, QString *source, in
|
||||
const QString unqualifiedClassName = namespaceList.takeLast();
|
||||
|
||||
// Include guards
|
||||
const QString guard = Core::Utils::headerGuard(unqualifiedClassName);
|
||||
const QString guard = Core::Utils::headerGuard(headerFile);
|
||||
|
||||
QString uiInclude = QLatin1String("ui_");
|
||||
uiInclude += QFileInfo(uiFile).baseName();
|
||||
|
||||
Reference in New Issue
Block a user