mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 14:50:53 +01:00
Added a combo box in the title block properties to choose the template that will render the title block.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1134 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -43,7 +43,8 @@ bool TitleBlockProperties::operator==(const TitleBlockProperties &ip) {
|
||||
ip.author == author &&\
|
||||
ip.date == date &&\
|
||||
ip.filename == filename &&\
|
||||
ip.folio == folio
|
||||
ip.folio == folio &&\
|
||||
ip.template_name == template_name
|
||||
);
|
||||
}
|
||||
|
||||
@@ -66,6 +67,9 @@ void TitleBlockProperties::toXml(QDomElement &e) const {
|
||||
e.setAttribute("filename", filename);
|
||||
e.setAttribute("folio", folio);
|
||||
e.setAttribute("date", exportDate());
|
||||
if (!template_name.isEmpty()) {
|
||||
e.setAttribute("titleblocktemplate", template_name);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -78,6 +82,7 @@ void TitleBlockProperties::fromXml(QDomElement &e) {
|
||||
if (e.hasAttribute("filename")) filename = e.attribute("filename");
|
||||
if (e.hasAttribute("folio")) folio = e.attribute("folio");
|
||||
if (e.hasAttribute("date")) setDateFromString(e.attribute("date"));
|
||||
if (e.hasAttribute("titleblocktemplate")) template_name = e.attribute("titleblocktemplate");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user