added access on tag_name and tag_value

This commit is contained in:
2025-08-23 14:37:36 +02:00
parent 769ad2b002
commit 3a5fbad33e
14 changed files with 89 additions and 32 deletions

View File

@@ -79,6 +79,9 @@ bool znode::zpayload<QString>::xstr_is_empty(const QString& entry ) const
//! 'QString' varianten der keystrings.
template<>
const QString znode::zpayload<QString>::cTagName = "TagName";
template<>
const QString znode::zpayload<QString>::cType = "Type";

View File

@@ -98,6 +98,9 @@ void XQViewModel::initModel(const QString& modelName)
...
*/
setObjectName( modelName );
qDebug() << " --- initModel: " << objectName();
// model rootnode finden -> <DocumentTreeModel>
XQNodePtr modelSheet = _itemFactory.findModelSheet( modelName ); // throws
@@ -108,11 +111,9 @@ void XQViewModel::initModel(const QString& modelName)
const XQNodePtr header = sectionNode->find_child_by_tag_name( c_Header );
if( header )
{
XQItemList list = _itemFactory.makeRow( header, nullptr );
addSection(list, sectionNode );
}
}
}
@@ -385,6 +386,9 @@ void XQViewModel::cmdPaste( XQCommand& command )
// wir pasten das clipboard
for (auto& entry : _clipBoard )
{
// WARUM zwei mal klonen ?
// noch ein clone vom clone erzeugen ...
XQNodePtr newNode = entry.contentNode->clone(section.contentRootNode() );
newNode->clone(section.contentRootNode() )->add_me_at( nodePos );