Fix validation issue. Treat empty attribute as default value.
This commit is contained in:
parent
34fd0b81bf
commit
9e4fa8337d
|
@ -825,6 +825,7 @@
|
||||||
</xs:simpleType>
|
</xs:simpleType>
|
||||||
<xs:simpleType name="operationColors">
|
<xs:simpleType name="operationColors">
|
||||||
<xs:restriction base="xs:string">
|
<xs:restriction base="xs:string">
|
||||||
|
<xs:enumeration value=""/><!--Same as default-->
|
||||||
<xs:enumeration value="default"/>
|
<xs:enumeration value="default"/>
|
||||||
<xs:enumeration value="black"/>
|
<xs:enumeration value="black"/>
|
||||||
<xs:enumeration value="green"/>
|
<xs:enumeration value="green"/>
|
||||||
|
@ -857,6 +858,7 @@
|
||||||
</xs:simpleType>
|
</xs:simpleType>
|
||||||
<xs:simpleType name="operationPenStyle">
|
<xs:simpleType name="operationPenStyle">
|
||||||
<xs:restriction base="xs:string">
|
<xs:restriction base="xs:string">
|
||||||
|
<xs:enumeration value=""/><!--Same as default-->
|
||||||
<xs:enumeration value="default"/>
|
<xs:enumeration value="default"/>
|
||||||
<xs:enumeration value="none"/>
|
<xs:enumeration value="none"/>
|
||||||
<xs:enumeration value="hair"/>
|
<xs:enumeration value="hair"/>
|
||||||
|
|
|
@ -31,15 +31,17 @@
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QMetaType>
|
#include <QMetaType>
|
||||||
|
|
||||||
|
#include "../ifc/ifcdef.h"
|
||||||
|
|
||||||
class VGObject;
|
class VGObject;
|
||||||
class VContainer;
|
class VContainer;
|
||||||
|
|
||||||
struct SourceItem
|
struct SourceItem
|
||||||
{
|
{
|
||||||
quint32 id{0};
|
quint32 id{NULL_ID};
|
||||||
QString alias{};
|
QString alias{};
|
||||||
QString penStyle{};
|
QString penStyle{TypeLineDefault};
|
||||||
QString color{};
|
QString color{ColorDefault};
|
||||||
};
|
};
|
||||||
|
|
||||||
Q_DECLARE_METATYPE(SourceItem)
|
Q_DECLARE_METATYPE(SourceItem)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user