MCPcopy Create free account
hub / github.com/LMMS/lmms / saveState

Method saveState

src/core/JournallingObject.cpp:67–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65
66
67QDomElement JournallingObject::saveState( QDomDocument & _doc,
68 QDomElement & _parent )
69{
70 if( isJournalling() )
71 {
72 QDomElement _this = SerializingObject::saveState( _doc, _parent );
73
74 QDomElement journalNode = _doc.createElement( "journallingObject" );
75 journalNode.setAttribute( "id", id() );
76 journalNode.setAttribute( "metadata", true );
77 _this.appendChild( journalNode );
78
79 return _this;
80 } else {
81 return QDomElement();
82 }
83}
84
85
86

Callers

nothing calls this directly

Calls 3

isJournallingFunction · 0.85
idFunction · 0.85
QDomElementClass · 0.50

Tested by

no test coverage detected