mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 14:50:53 +01:00
Titleblock properties rename properties %loc to %locmach
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4626 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -48,7 +48,7 @@ bool TitleBlockProperties::operator==(const TitleBlockProperties &ip) {
|
||||
ip.date == date &&\
|
||||
ip.filename == filename &&\
|
||||
ip.machine == machine &&\
|
||||
ip.loc == loc &&\
|
||||
ip.locmach == locmach &&\
|
||||
ip.indexrev == indexrev &&\
|
||||
ip.version == version &&\
|
||||
ip.folio == folio &&\
|
||||
@@ -78,7 +78,7 @@ void TitleBlockProperties::toXml(QDomElement &e) const {
|
||||
e.setAttribute("title", title);
|
||||
e.setAttribute("filename", filename);
|
||||
e.setAttribute("machine", machine);
|
||||
e.setAttribute("loc", loc);
|
||||
e.setAttribute("locmach", locmach);
|
||||
e.setAttribute("indexrev",indexrev);
|
||||
e.setAttribute("version", version);
|
||||
e.setAttribute("folio", folio);
|
||||
@@ -108,7 +108,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("loc")) loc = e.attribute("loc");
|
||||
if (e.hasAttribute("locmach")) locmach = e.attribute("locmach");
|
||||
if (e.hasAttribute("indexrev")) indexrev = e.attribute("indexrev");
|
||||
if (e.hasAttribute("version")) version = e.attribute("version");
|
||||
if (e.hasAttribute("folio")) folio = e.attribute("folio");
|
||||
@@ -141,7 +141,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 + "loc", loc);
|
||||
settings.setValue(prefix + "locmach", locmach);
|
||||
settings.setValue(prefix + "indexrev", indexrev);
|
||||
settings.setValue(prefix + "version", version);
|
||||
settings.setValue(prefix + "folio", folio);
|
||||
@@ -163,7 +163,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();
|
||||
loc = settings.value(prefix + "loc").toString();
|
||||
locmach = settings.value(prefix + "locmach").toString();
|
||||
indexrev = settings.value(prefix + "indexrev").toString();
|
||||
version = settings.value(prefix + "version").toString();
|
||||
folio = settings.value(prefix + "folio", "%id/%total").toString();
|
||||
|
||||
Reference in New Issue
Block a user