[SOLVED] customizing templates for source/header files
-
I just checked the sources. The contents of a new header file is hard coded into Qt Creator. It is always of the format
@
#ifndef FILENAME_IN_UPPER_CASE_H
#define FILENAME_IN_UPPER_CASE_H#endif // FILENAME_IN_UPPER_CASE_H
@The only thing you can customize is a license template, that is prepended on the very top of the file.
The same holds for a single new C++ source file, with the exception, that this one is plain empty (it only contains a single newline, and optionally the license template).
I'm sorry - you will either need to hack Qt Creator (in file qt-creator-master/src/plugins/cppeditor/cppfilewizard.cpp) or live with the current "template".