Files
qt-creator/share/qtcreator/templates/wizards/projects/qtwidgetsapplication/widget.cpp
Eike Ziller a71dbd4b33 Fix different UI aggregation styles for widget project wizard
This got lost during the transition to JSON.
Amends 241efa353d

Fixes: QTCREATORBUG-24422
Change-Id: I51dec2e84adb3c5944ecaf83697f3e776bd3d7f1
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-08-14 07:37:24 +00:00

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}')}\