Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add header to Qt templates
  • Loading branch information
NathanW2 committed Apr 7, 2017
1 parent 58d2d6d commit 8c5e241
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions editors/QtCreator/templates/wizards/qgis/qgis_test/file.cpp
@@ -1,4 +1,24 @@
%{Cpp:LicenseTemplate}
/***************************************************************************
%{SrcFileName} - %{CN}
--------------
begin : %{CurrentDate:dd-MM-yyyy}
@if %{HostOs:isWindows}
copyright : (C) %{CurrentDate:yyyy} by %{Env:USERNAME}
@else
copyright : (C) %{CurrentDate:yyyy} by %{Env:USER}
@endif
email : [ YOUR EMAIL]
***************************************************************************/

/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/

#include "qgstest.h"
#include <QObject>
#include <qgsapplication.h>
Expand All @@ -10,9 +30,9 @@ class %{CN}: public QObject

private slots:
void initTestCase(); // will be called before the first testfunction is executed.
void cleanupTestCase() {} // will be called after the last testfunction was executed.
void init() {} // will be called before each testfunction is executed.
void cleanup() {} // will be called after every testfunction.
void cleanupTestCase(); // will be called after the last testfunction was executed.
void init(); // will be called before each testfunction is executed.
void cleanup(); // will be called after every testfunction.

// Add your test methods here
};
Expand Down

0 comments on commit 8c5e241

Please sign in to comment.