mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-08 14:49:58 +01:00
Fixed vertical alignment parsing for title block templates.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1293 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -305,8 +305,8 @@ bool TitleBlockTemplate::loadCells(const QDomElement &xml_element) {
|
||||
else loaded_cell -> alignment |= Qt::AlignLeft;
|
||||
|
||||
QString valignment = cell_element.attribute("valign", "center");
|
||||
if (halignment == "bottom") loaded_cell -> alignment |= Qt::AlignBottom;
|
||||
else if (halignment == "top") loaded_cell -> alignment |= Qt::AlignTop;
|
||||
if (valignment == "bottom") loaded_cell -> alignment |= Qt::AlignBottom;
|
||||
else if (valignment == "top") loaded_cell -> alignment |= Qt::AlignTop;
|
||||
else loaded_cell -> alignment |= Qt::AlignVCenter;
|
||||
|
||||
// horizontal text adjustment
|
||||
|
||||
Reference in New Issue
Block a user