mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 06:20:53 +01:00
Minor change
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4308 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -57,7 +57,11 @@ QPen QETXML::penFromXml(const QDomElement &element)
|
|||||||
{
|
{
|
||||||
QPen pen;
|
QPen pen;
|
||||||
|
|
||||||
if (!(!element.isNull() && element.tagName() == "pen")) return pen;
|
if (!(!element.isNull() && element.tagName() == "pen"))
|
||||||
|
{
|
||||||
|
pen.setStyle(Qt::DashLine);
|
||||||
|
return pen;
|
||||||
|
}
|
||||||
|
|
||||||
QString style = element.attribute("style", "DashLine");
|
QString style = element.attribute("style", "DashLine");
|
||||||
if (style == "SolidLine") pen.setStyle(Qt::SolidLine);
|
if (style == "SolidLine") pen.setStyle(Qt::SolidLine);
|
||||||
|
|||||||
Reference in New Issue
Block a user