forked from qt-creator/qt-creator
The header file must be referenced relative to the location of the source file. Task-number: QTCREATORBUG-15599 Change-Id: Ib7d4aa5a62a94541cbe32cd340a8a1e7d6ef35e5 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
27 lines
498 B
C++
27 lines
498 B
C++
%{Cpp:LicenseTemplate}\
|
|
#include "%{JS: Util.relativeFilePath('%{Path}/%{HdrFileName}', '%{Path}' + '/' + Util.path('%{SrcFileName}'))}"
|
|
@if %{GenerateForm}
|
|
#include "%{UiHdrFileName}"
|
|
@endif
|
|
%{JS: Cpp.openNamespaces('%{Class}')}\
|
|
|
|
%{CN}::%{CN}(QWidget *parent)
|
|
: %{BaseClass}(parent)
|
|
@if %{GenerateForm}
|
|
, ui(new Ui::%{CN})
|
|
@endif
|
|
{
|
|
@if %{GenerateForm}
|
|
ui->setupUi(this);
|
|
@endif
|
|
}
|
|
|
|
%{CN}::~%{CN}()
|
|
{
|
|
@if %{GenerateForm}
|
|
delete ui;
|
|
@endif
|
|
}
|
|
|
|
%{JS: Cpp.closeNamespaces('%{Class}')}\
|