Add new fild and titleblock "Function group"

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5622 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
scorpio810
2018-11-30 23:53:13 +00:00
parent 01414974a0
commit ee91337d75
26 changed files with 200 additions and 49 deletions

View File

@@ -48,6 +48,7 @@ bool TitleBlockProperties::operator==(const TitleBlockProperties &ip) {
ip.date == date &&\
ip.filename == filename &&\
ip.machine == machine &&\
ip.funcgroup == funcgroup &&\
ip.locmach == locmach &&\
ip.indexrev == indexrev &&\
ip.version == version &&\
@@ -78,6 +79,7 @@ void TitleBlockProperties::toXml(QDomElement &e) const {
e.setAttribute("title", title);
e.setAttribute("filename", filename);
e.setAttribute("machine", machine);
e.setAttribute("funcgroup", funcgroup);
e.setAttribute("locmach", locmach);
e.setAttribute("indexrev",indexrev);
e.setAttribute("version", version);
@@ -108,6 +110,7 @@ void TitleBlockProperties::fromXml(const QDomElement &e) {
if (e.hasAttribute("title")) title = e.attribute("title");
if (e.hasAttribute("filename")) filename = e.attribute("filename");
if (e.hasAttribute("machine")) machine = e.attribute("machine");
if (e.hasAttribute("funcgroup")) funcgroup = e.attribute("funcgroup");
if (e.hasAttribute("locmach")) locmach = e.attribute("locmach");
if (e.hasAttribute("indexrev")) indexrev = e.attribute("indexrev");
if (e.hasAttribute("version")) version = e.attribute("version");
@@ -141,6 +144,7 @@ void TitleBlockProperties::toSettings(QSettings &settings, const QString &prefix
settings.setValue(prefix + "author", author);
settings.setValue(prefix + "filename", filename);
settings.setValue(prefix + "machine", machine);
settings.setValue(prefix + "funcgroup", funcgroup);
settings.setValue(prefix + "locmach", locmach);
settings.setValue(prefix + "indexrev", indexrev);
settings.setValue(prefix + "version", version);
@@ -163,6 +167,7 @@ void TitleBlockProperties::fromSettings(QSettings &settings, const QString &pref
author = settings.value(prefix + "author").toString();
filename = settings.value(prefix + "filename").toString();
machine = settings.value(prefix + "machine").toString();
funcgroup= settings.value(prefix + "funcgroup").toString();
locmach = settings.value(prefix + "locmach").toString();
indexrev = settings.value(prefix + "indexrev").toString();
version = settings.value(prefix + "version").toString();