Commit d2eb0426 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

JsonWizard: Remove empty lines



Task-number: QTCREATORBUG-13289
Change-Id: I2c8d1fc4e2cfcb940e76a6988d35e80703548668
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent 553ac29f
%{Cpp:LicenseTemplate} %{Cpp:LicenseTemplate}\
#include "%{HdrFileName}" #include "%{HdrFileName}"
%{JS: Cpp.openNamespaces('%{Class}')} %{JS: Cpp.openNamespaces('%{Class}')}
@if '%{IncludeQSharedData}' @if '%{IncludeQSharedData}'
class %{CN}Data : public QSharedData class %{CN}Data : public QSharedData
{ {
public: public:
}; };
@endif
@endif
@if '%{Base}' === 'QObject' @if '%{Base}' === 'QObject'
%{CN}::%{CN}(QObject *parent) : QObject(parent)%{JS: ('%{SharedDataInit}') ? ', %{SharedDataInit}' : ''} %{CN}::%{CN}(QObject *parent) : QObject(parent)%{JS: ('%{SharedDataInit}') ? ', %{SharedDataInit}' : ''}
@elsif '%{Base}' === 'QWidget' || '%{Base}' === 'QMainWindow' @elsif '%{Base}' === 'QWidget' || '%{Base}' === 'QMainWindow'
...@@ -41,5 +38,4 @@ public: ...@@ -41,5 +38,4 @@ public:
{ {
} }
%{JS: Cpp.closeNamespaces('%{Class}')}\
%{JS: Cpp.closeNamespaces('%{Class}')}
%{Cpp:LicenseTemplate} %{Cpp:LicenseTemplate}\
#ifndef %{GUARD} #ifndef %{GUARD}
#define %{GUARD} #define %{GUARD}
...@@ -12,10 +12,8 @@ ...@@ -12,10 +12,8 @@
( '%{IncludeQMainWindow}' ) ? 'QtWidgets/%{IncludeQMainWindow}' : '', ( '%{IncludeQMainWindow}' ) ? 'QtWidgets/%{IncludeQMainWindow}' : '',
( '%{IncludeQDeclarativeItem}' ) ? 'QtQuick1/%{IncludeQDeclarativeItem}' : '', ( '%{IncludeQDeclarativeItem}' ) ? 'QtQuick1/%{IncludeQDeclarativeItem}' : '',
( '%{IncludeQQuickItem}' ) ? 'QtDeclarative/%{IncludeQQuickItem}' : '', ( '%{IncludeQQuickItem}' ) ? 'QtDeclarative/%{IncludeQQuickItem}' : '',
( '%{IncludeQSharedData}' ) ? 'QtCore/QSharedDataPointer' : '' ])} ( '%{IncludeQSharedData}' ) ? 'QtCore/QSharedDataPointer' : '' ])}\
%{JS: Cpp.openNamespaces('%{Class}')} %{JS: Cpp.openNamespaces('%{Class}')}
@if '%{IncludeQSharedData}' @if '%{IncludeQSharedData}'
class %{CN}Data; class %{CN}Data;
...@@ -54,7 +52,5 @@ private: ...@@ -54,7 +52,5 @@ private:
QSharedDataPointer<%{CN}Data> data; QSharedDataPointer<%{CN}Data> data;
@endif @endif
}; };
%{JS: Cpp.closeNamespaces('%{Class}')} %{JS: Cpp.closeNamespaces('%{Class}')}
#endif // %{GUARD}\
#endif // %{GUARD}
%{Cpp:LicenseTemplate} %{Cpp:LicenseTemplate}\
#ifndef %{JS: Cpp.headerGuard('%{FileName}')} #ifndef %{JS: Cpp.headerGuard('%{FileName}')}
#define %{JS: Cpp.headerGuard('%{FileName}')} #define %{JS: Cpp.headerGuard('%{FileName}')}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment