mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-04-20 08:49:58 +02: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;
|
else loaded_cell -> alignment |= Qt::AlignLeft;
|
||||||
|
|
||||||
QString valignment = cell_element.attribute("valign", "center");
|
QString valignment = cell_element.attribute("valign", "center");
|
||||||
if (halignment == "bottom") loaded_cell -> alignment |= Qt::AlignBottom;
|
if (valignment == "bottom") loaded_cell -> alignment |= Qt::AlignBottom;
|
||||||
else if (halignment == "top") loaded_cell -> alignment |= Qt::AlignTop;
|
else if (valignment == "top") loaded_cell -> alignment |= Qt::AlignTop;
|
||||||
else loaded_cell -> alignment |= Qt::AlignVCenter;
|
else loaded_cell -> alignment |= Qt::AlignVCenter;
|
||||||
|
|
||||||
// horizontal text adjustment
|
// horizontal text adjustment
|
||||||
|
|||||||
Reference in New Issue
Block a user