diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2019-04-23 15:21:34 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2019-04-30 10:50:10 +0000 |
commit | 24263717f39730cfd02e4b5efbdf41c76bd63ba4 (patch) | |
tree | d27a3f461bed3c4c259a9d952530b346fe23bc55 /share/qtcreator/templates | |
parent | a296b84dc46215ba333ddcd44cd45663d9b139b8 (diff) |
Make QtWidgets wizard work with namespaced Qt
Fixes: QTCREATORBUG-19590
Change-Id: Ic003b2b1f580d9a6708e144b690c4cee8d94ff69
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'share/qtcreator/templates')
-rw-r--r-- | share/qtcreator/templates/wizards/projects/qtwidgetsapplication/widget.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/share/qtcreator/templates/wizards/projects/qtwidgetsapplication/widget.h b/share/qtcreator/templates/wizards/projects/qtwidgetsapplication/widget.h index 4ce74ac814..dca6171267 100644 --- a/share/qtcreator/templates/wizards/projects/qtwidgetsapplication/widget.h +++ b/share/qtcreator/templates/wizards/projects/qtwidgetsapplication/widget.h @@ -10,7 +10,13 @@ %{JS: Cpp.openNamespaces('%{Class}')}\ @if %{GenerateForm} +@if ! %{JS: Cpp.hasNamespaces('%{Class}')} +QT_BEGIN_NAMESPACE +@endif namespace Ui { class %{CN}; } +@if ! %{JS: Cpp.hasNamespaces('%{Class}')} +QT_END_NAMESPACE +@endif @endif class %{CN} : public %{BaseClass} |