mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 16:20:52 +01:00
move all static xml functions to qetxml
This commit is contained in:
@@ -20,6 +20,8 @@
|
||||
#include "../../QPropertyUndoCommand/qpropertyundocommand.h"
|
||||
#include "../elementscene.h"
|
||||
|
||||
#include "../../qetxml.h"
|
||||
|
||||
#include <QRegularExpression>
|
||||
|
||||
/**
|
||||
@@ -497,8 +499,8 @@ void CustomElementGraphicPart::stylesToXml(QDomElement &qde) const
|
||||
else if (_color == HTMLGrayBlackColor) css_like_styles += "HTMLGrayBlack";
|
||||
else if (_color == NoneColor) css_like_styles += "none";
|
||||
|
||||
qde.appendChild(createXmlProperty("style", css_like_styles));
|
||||
qde.appendChild(createXmlProperty("antialias", _antialiased ? "true" : "false"));
|
||||
qde.appendChild(QETXML::createXmlProperty("style", css_like_styles));
|
||||
qde.appendChild(QETXML::createXmlProperty("antialias", _antialiased ? "true" : "false"));
|
||||
}
|
||||
|
||||
|
||||
@@ -512,7 +514,7 @@ void CustomElementGraphicPart::stylesFromXml(const QDomElement &qde)
|
||||
resetStyles();
|
||||
|
||||
QString style_string;
|
||||
propertyString(qde, "style", &style_string);
|
||||
QETXML::propertyString(qde, "style", &style_string);
|
||||
|
||||
//Get the list of pair style/value
|
||||
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0) // ### Qt 6: remove
|
||||
|
||||
Reference in New Issue
Block a user