Files
qt-creator/share/qtcreator/templates/wizards/projects/qtwidgetsapplication/widget.cpp
Christian Kandeler a296b84dc4 Wizards: Fix include statements
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>
2019-04-30 10:47:44 +00:00

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