From 377af876bd3b61f5229d55a27160619ed31408ad Mon Sep 17 00:00:00 2001 From: xmuli Date: Mon, 4 May 2020 22:16:34 +0800 Subject: [PATCH] feat: Meat-Object System MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MeatObjectSystem(元对象系统)、Propert(属性和动态属性)和Q_CLASSINFO()(附加信息宏)的介绍和使用 --- QtMeatObjectEx/ExPerson.cpp | 15 +++++++++++++++ QtMeatObjectEx/ExPerson.h | 15 +++++++++++++++ QtMeatObjectEx/ExWidget.cpp | 15 +++++++++++++++ QtMeatObjectEx/ExWidget.h | 15 +++++++++++++++ QtMeatObjectEx/main.cpp | 15 +++++++++++++++ 5 files changed, 75 insertions(+) diff --git a/QtMeatObjectEx/ExPerson.cpp b/QtMeatObjectEx/ExPerson.cpp index 54756e2..8491c29 100644 --- a/QtMeatObjectEx/ExPerson.cpp +++ b/QtMeatObjectEx/ExPerson.cpp @@ -1,3 +1,18 @@ +/* + * Copyright 2019 xmulitech@gmail.com + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. +*/ #include "ExPerson.h" //加一个参后的构造函数 diff --git a/QtMeatObjectEx/ExPerson.h b/QtMeatObjectEx/ExPerson.h index b60f695..d0ff2b1 100644 --- a/QtMeatObjectEx/ExPerson.h +++ b/QtMeatObjectEx/ExPerson.h @@ -1,3 +1,18 @@ +/* + * Copyright 2019 xmulitech@gmail.com + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. +*/ #ifndef EXPERSON_H #define EXPERSON_H diff --git a/QtMeatObjectEx/ExWidget.cpp b/QtMeatObjectEx/ExWidget.cpp index 23b2747..2c6f1bc 100644 --- a/QtMeatObjectEx/ExWidget.cpp +++ b/QtMeatObjectEx/ExWidget.cpp @@ -1,3 +1,18 @@ +/* + * Copyright 2019 xmulitech@gmail.com + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. +*/ #include "ExWidget.h" #include "ui_ExWidget.h" #include diff --git a/QtMeatObjectEx/ExWidget.h b/QtMeatObjectEx/ExWidget.h index 96933f7..ef68f96 100644 --- a/QtMeatObjectEx/ExWidget.h +++ b/QtMeatObjectEx/ExWidget.h @@ -1,3 +1,18 @@ +/* + * Copyright 2019 xmulitech@gmail.com + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. +*/ #ifndef EXWIDGET_H #define EXWIDGET_H diff --git a/QtMeatObjectEx/main.cpp b/QtMeatObjectEx/main.cpp index ab25a7f..94cb9f6 100644 --- a/QtMeatObjectEx/main.cpp +++ b/QtMeatObjectEx/main.cpp @@ -1,3 +1,18 @@ +/* + * Copyright 2019 xmulitech@gmail.com + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. +*/ #include "ExWidget.h" #include