mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 08:10:52 +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:
@@ -66,6 +66,10 @@ bool TitleBlockTemplate::loadFromXmlElement(const QDomElement &xml_element) {
|
||||
if (xml_element.tagName() != "titleblocktemplate") {
|
||||
return(false);
|
||||
}
|
||||
if (!xml_element.hasAttribute("name")) {
|
||||
return(false);
|
||||
}
|
||||
name_ = xml_element.attribute("name");
|
||||
|
||||
loadLogos(xml_element, true);
|
||||
loadGrid(xml_element);
|
||||
@@ -421,6 +425,13 @@ QString TitleBlockTemplate::toString() const {
|
||||
return(str);
|
||||
}
|
||||
|
||||
/**
|
||||
@return the name of this template
|
||||
*/
|
||||
QString TitleBlockTemplate::name() const {
|
||||
return(name_);
|
||||
}
|
||||
|
||||
/**
|
||||
@param total_width The total width of the titleblock to render
|
||||
@return the list of the columns widths for this rendering
|
||||
|
||||
Reference in New Issue
Block a user