From cbc1fb3cd371b8de3a3255ed6cdcff3b97190240 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Tue, 17 Aug 2010 17:10:52 +0200 Subject: [PATCH] Add documentation for C++-license headers. Task-number: QTCREATORBUG-1854 Reviewed-by: Leena Miettinen --- doc/qtcreator.qdoc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/doc/qtcreator.qdoc b/doc/qtcreator.qdoc index 5f6b8e8674a..c810c5cf20b 100644 --- a/doc/qtcreator.qdoc +++ b/doc/qtcreator.qdoc @@ -6697,6 +6697,22 @@ For more information, see \l{Creating Locator Filters}. + \section1 Adding a License Header Template for C++ Code + + A file containing a license header for C++ can be specified under + \gui{Tools > Options... > C++ > License Template}. It may contain special + placeholders enclosed in \c{%%} that are replaced when generating a + new file: + + \list 1 + \o \c %YEAR%: Year + \o \c %DATE%: Date + \o \c %USER%: User name + \o \c %FILENAME%: File name + \o \c %CLASS%: Class name (if applicable) + \o \c %$VARIABLE%: Contents of environment variable \c{VARIABLE}. + \endlist + */