15 * You should have received a copy of the GNU General Public License |
15 * You should have received a copy of the GNU General Public License |
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 */ |
17 */ |
18 |
18 |
19 #include "comment.h" |
19 #include "comment.h" |
|
20 #include "../editHistory.h" |
20 |
21 |
21 LDComment::LDComment(Model* model) : |
22 LDComment::LDComment(QString text) : |
22 LDObject {model} {} |
|
23 |
|
24 LDComment::LDComment(QString text, Model* model) : |
|
25 LDObject {model}, |
|
26 m_text {text} {} |
23 m_text {text} {} |
27 |
24 |
28 LDObjectType LDComment::type() const |
25 LDObjectType LDComment::type() const |
29 { |
26 { |
30 return LDObjectType::Comment; |
27 return LDObjectType::Comment; |