Files
qt-creator/share/qtcreator/templates/wizards/projects/qtwidgetsapplication/widget.cpp
Eike Ziller 241efa353d Move Qt Widgets Application wizard to JSON
Adding support for CMake as well as QMake

Task-number: QTCREATORBUG-17308
Change-Id: I615b58921918ec87f935e0f11d3dd23ec20f0ac1
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2019-03-27 09:44:17 +00:00

27 lines
411 B
C++

%{Cpp:LicenseTemplate}\
#include "%{HdrFileName}"
@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}')}\