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

Method restoreState

src/core/JournallingObject.cpp:88–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86
87
88void JournallingObject::restoreState( const QDomElement & _this )
89{
90 SerializingObject::restoreState( _this );
91
92 saveJournallingState( false );
93
94 // search for journal-node
95 QDomNode node = _this.firstChild();
96 while( !node.isNull() )
97 {
98 if( node.isElement() && node.nodeName() == "journal" )
99 {
100 const jo_id_t new_id = node.toElement().attribute( "id" ).toInt();
101 if( new_id )
102 {
103 changeID( new_id );
104 }
105 }
106 node = node.nextSibling();
107 }
108
109 restoreJournallingState();
110}
111
112
113

Callers

nothing calls this directly

Calls 4

saveJournallingStateFunction · 0.85
restoreJournallingStateFunction · 0.85
isNullMethod · 0.80
nodeNameMethod · 0.45

Tested by

no test coverage detected