1 | // SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. |
---|---|
2 | // |
3 | // SPDX-License-Identifier: GPL-3.0-or-later |
4 | |
5 | #include "generator.h" |
6 | |
7 | #include <QStandardItem> |
8 | |
9 | Generator::Generator(QObject *parent) |
10 | : QObject(parent) |
11 | { |
12 | |
13 | } |
14 | |
15 | QString Generator::errorString() |
16 | { |
17 | return property("errorString").toString(); |
18 | } |
19 | |
20 | bool Generator::setErrorString(const QString &error) |
21 | { |
22 | return setProperty("errorString", error); |
23 | } |
24 | |
25 | bool Generator::setProperty(const QString &name, const QVariant &value) |
26 | { |
27 | return QObject::setProperty(name.toLatin1(), value); |
28 | } |
29 | |
30 | QVariant Generator::property(const QString &name) const |
31 | { |
32 | return QObject::property(name.toLatin1()); |
33 | } |
34 |