From d8902a43c03179704a5fdbba7fa8300bcb66becf Mon Sep 17 00:00:00 2001 From: "PANIK\\chris" Date: Sun, 10 Aug 2025 13:29:56 +0200 Subject: [PATCH] created dummy model with new structure. --- src/items/xqitemfactory.cpp | 12 ++++++------ xml/modelsheets.xml | 10 ++++++++++ 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/src/items/xqitemfactory.cpp b/src/items/xqitemfactory.cpp index bf75e5e..20c73ac 100644 --- a/src/items/xqitemfactory.cpp +++ b/src/items/xqitemfactory.cpp @@ -137,14 +137,14 @@ XQItem* XQItemFactory::makeHeaderItem( const XQNodePtr& sheetEntry ) XQItem* XQItemFactory::makeContentItem( const XQNodePtr& contentNode, const XQNodePtr& sheetEntry ) { - // den itemtype des neuen items rausfinden - QString typeKey = sheetEntry->attribute("ItemType"); - //XQItemType* itemType = findItemTypeTemplate(typeKey); // throws - XQItemType* itemType = makeItemType(sheetEntry); // throws + // den itemtype des neuen items rausfinden + QString typeKey = sheetEntry->attribute("ItemType"); + //XQItemType* itemType = findItemTypeTemplate(typeKey); // 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 ); } diff --git a/xml/modelsheets.xml b/xml/modelsheets.xml index 2fe8536..f4ee3e1 100644 --- a/xml/modelsheets.xml +++ b/xml/modelsheets.xml @@ -47,6 +47,16 @@ + +
+
+ + + +
+ +
+