forked from qt-creator/qt-creator
This got lost during the transition to JSON.
Amends 241efa353d
Fixes: QTCREATORBUG-24422
Change-Id: I51dec2e84adb3c5944ecaf83697f3e776bd3d7f1
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
33 lines
731 B
C++
33 lines
731 B
C++
%{Cpp:LicenseTemplate}\
|
|
#include "%{JS: Util.relativeFilePath('%{Path}/%{HdrFileName}', '%{Path}' + '/' + Util.path('%{SrcFileName}'))}"
|
|
@if %{GenerateForm} && %{JS: QtSupport.uiAsPointer() }
|
|
#include "%{UiHdrFileName}"
|
|
@endif
|
|
%{JS: Cpp.openNamespaces('%{Class}')}\
|
|
|
|
%{CN}::%{CN}(QWidget *parent)
|
|
: %{BaseClass}(parent)
|
|
@if %{GenerateForm} && %{JS: QtSupport.uiAsPointer() }
|
|
, ui(new Ui::%{CN})
|
|
@endif
|
|
{
|
|
@if %{GenerateForm}
|
|
@if %{JS: QtSupport.uiAsPointer() }
|
|
ui->setupUi(this);
|
|
@elsif %{JS: QtSupport.uiAsMember() }
|
|
ui.setupUi(this);
|
|
@else
|
|
setupUi(this);
|
|
@endif
|
|
@endif
|
|
}
|
|
|
|
%{CN}::~%{CN}()
|
|
{
|
|
@if %{GenerateForm} && %{JS: QtSupport.uiAsPointer() }
|
|
delete ui;
|
|
@endif
|
|
}
|
|
|
|
%{JS: Cpp.closeNamespaces('%{Class}')}\
|