Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

QtCreator: Central "header" for source code (copyright, author)

Is there a chance to define a central header (remark) being included in all source code files (automatically) in QtCreator?

The header shall contain just a remark with legal information, copyright, web site of the project etc.

I want to keep it in one central place in order I need to change it. If I manually add it to each .h / .cpp file, I need to change it everywhere in case I want to make adjustments.

like image 582
Horst Walter Avatar asked Sep 05 '12 10:09

Horst Walter


1 Answers

This is just an addition to the answer by claudio. (Cant comments since I have too few reputation points)

Other placeholders that can be used in the license file:

%YEAR%: Year
%MONTH%: Month
%DAY%: Day of the month
%DATE%: Date
%USER%: User name
%FILENAME%: File name
%CLASS%: Class name (if applicable)
%$VARIABLE%: Contents of environment variable VARIABLE.
like image 161
thomas Avatar answered Sep 18 '22 13:09

thomas