Skip to content
Permalink
Browse files
Add header to Qt templates
  • Loading branch information
NathanW2 committed Apr 7, 2017
1 parent 58d2d6d commit 8c5e241be4b228e8be74279bb6754a4085386e5d
Showing with 24 additions and 4 deletions.
  1. +24 −4 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>
@@ -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
};

0 comments on commit 8c5e241

Please sign in to comment.