File tree 8 files changed +28
-94
lines changed
modules/swagger-codegen/src/main/resources/qt5cpp
samples/client/petstore/qt5cpp/client
8 files changed +28
-94
lines changed Original file line number Diff line number Diff line change @@ -30,10 +30,10 @@ public:
30
30
void init();
31
31
void cleanup();
32
32
33
- QString asJson ();
34
- QJsonObject asJsonObject();
35
- void fromJsonObject(QJsonObject json);
36
- { {classname} }* fromJson(QString jsonString);
33
+ QString asJson () override ;
34
+ QJsonObject asJsonObject() override ;
35
+ void fromJsonObject(QJsonObject json) override ;
36
+ { {classname} }* fromJson(QString jsonString) override ;
37
37
38
38
{ {#vars} }
39
39
{ {{datatype} }} { {getter} }();
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -36,10 +36,10 @@ class SWGApiResponse: public SWGObject {
36
36
void init ();
37
37
void cleanup ();
38
38
39
- QString asJson ();
40
- QJsonObject asJsonObject ();
41
- void fromJsonObject (QJsonObject json);
42
- SWGApiResponse* fromJson (QString jsonString);
39
+ QString asJson () override ;
40
+ QJsonObject asJsonObject () override ;
41
+ void fromJsonObject (QJsonObject json) override ;
42
+ SWGApiResponse* fromJson (QString jsonString) override ;
43
43
44
44
qint32 getCode ();
45
45
void setCode (qint32 code);
Original file line number Diff line number Diff line change @@ -36,10 +36,10 @@ class SWGCategory: public SWGObject {
36
36
void init ();
37
37
void cleanup ();
38
38
39
- QString asJson ();
40
- QJsonObject asJsonObject ();
41
- void fromJsonObject (QJsonObject json);
42
- SWGCategory* fromJson (QString jsonString);
39
+ QString asJson () override ;
40
+ QJsonObject asJsonObject () override ;
41
+ void fromJsonObject (QJsonObject json) override ;
42
+ SWGCategory* fromJson (QString jsonString) override ;
43
43
44
44
qint64 getId ();
45
45
void setId (qint64 id);
Original file line number Diff line number Diff line change @@ -37,10 +37,10 @@ class SWGOrder: public SWGObject {
37
37
void init ();
38
38
void cleanup ();
39
39
40
- QString asJson ();
41
- QJsonObject asJsonObject ();
42
- void fromJsonObject (QJsonObject json);
43
- SWGOrder* fromJson (QString jsonString);
40
+ QString asJson () override ;
41
+ QJsonObject asJsonObject () override ;
42
+ void fromJsonObject (QJsonObject json) override ;
43
+ SWGOrder* fromJson (QString jsonString) override ;
44
44
45
45
qint64 getId ();
46
46
void setId (qint64 id);
Original file line number Diff line number Diff line change @@ -39,10 +39,10 @@ class SWGPet: public SWGObject {
39
39
void init ();
40
40
void cleanup ();
41
41
42
- QString asJson ();
43
- QJsonObject asJsonObject ();
44
- void fromJsonObject (QJsonObject json);
45
- SWGPet* fromJson (QString jsonString);
42
+ QString asJson () override ;
43
+ QJsonObject asJsonObject () override ;
44
+ void fromJsonObject (QJsonObject json) override ;
45
+ SWGPet* fromJson (QString jsonString) override ;
46
46
47
47
qint64 getId ();
48
48
void setId (qint64 id);
Original file line number Diff line number Diff line change @@ -36,10 +36,10 @@ class SWGTag: public SWGObject {
36
36
void init ();
37
37
void cleanup ();
38
38
39
- QString asJson ();
40
- QJsonObject asJsonObject ();
41
- void fromJsonObject (QJsonObject json);
42
- SWGTag* fromJson (QString jsonString);
39
+ QString asJson () override ;
40
+ QJsonObject asJsonObject () override ;
41
+ void fromJsonObject (QJsonObject json) override ;
42
+ SWGTag* fromJson (QString jsonString) override ;
43
43
44
44
qint64 getId ();
45
45
void setId (qint64 id);
Original file line number Diff line number Diff line change @@ -36,10 +36,10 @@ class SWGUser: public SWGObject {
36
36
void init ();
37
37
void cleanup ();
38
38
39
- QString asJson ();
40
- QJsonObject asJsonObject ();
41
- void fromJsonObject (QJsonObject json);
42
- SWGUser* fromJson (QString jsonString);
39
+ QString asJson () override ;
40
+ QJsonObject asJsonObject () override ;
41
+ void fromJsonObject (QJsonObject json) override ;
42
+ SWGUser* fromJson (QString jsonString) override ;
43
43
44
44
qint64 getId ();
45
45
void setId (qint64 id);
You can’t perform that action at this time.
0 commit comments