created dummy model with new structure.
This commit is contained in:
@@ -137,14 +137,14 @@ XQItem* XQItemFactory::makeHeaderItem( const XQNodePtr& sheetEntry )
|
|||||||
|
|
||||||
XQItem* XQItemFactory::makeContentItem( const XQNodePtr& contentNode, const XQNodePtr& sheetEntry )
|
XQItem* XQItemFactory::makeContentItem( const XQNodePtr& contentNode, const XQNodePtr& sheetEntry )
|
||||||
{
|
{
|
||||||
// den itemtype des neuen items rausfinden
|
// den itemtype des neuen items rausfinden
|
||||||
QString typeKey = sheetEntry->attribute("ItemType");
|
QString typeKey = sheetEntry->attribute("ItemType");
|
||||||
//XQItemType* itemType = findItemTypeTemplate(typeKey); // throws
|
//XQItemType* itemType = findItemTypeTemplate(typeKey); // throws
|
||||||
XQItemType* itemType = makeItemType(sheetEntry); // throws
|
XQItemType* itemType = makeItemType(sheetEntry); // throws
|
||||||
|
|
||||||
const QString* contentPtr = contentNode->attribute_ptr( sheetEntry->tag_name() );
|
const QString* contentPtr = contentNode->attribute_ptr( sheetEntry->tag_name() );
|
||||||
|
|
||||||
return new XQItem( itemType, contentPtr );
|
return new XQItem( itemType, contentPtr );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -47,6 +47,16 @@
|
|||||||
<!--
|
<!--
|
||||||
DocumentDetailsModel:
|
DocumentDetailsModel:
|
||||||
-->
|
-->
|
||||||
|
<X>
|
||||||
|
<Section>
|
||||||
|
<Header>
|
||||||
|
</Header1>
|
||||||
|
<data>
|
||||||
|
</data>
|
||||||
|
</Section>
|
||||||
|
|
||||||
|
</X>
|
||||||
|
|
||||||
|
|
||||||
<DocumentDetailsModel>
|
<DocumentDetailsModel>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user