added save functions to various classes
Each class is responsible for its own saving and loading from the XML data in order to reduce the complexity of the save code.
This commit is contained in:
@@ -71,6 +71,11 @@ Item *Item::child(int i) const
|
||||
return children_.at(i).get();
|
||||
}
|
||||
|
||||
const QList<ItemPtr> &Item::children() const
|
||||
{
|
||||
return children_;
|
||||
}
|
||||
|
||||
ItemPtr Item::shared_ptr_from_raw(Item *item)
|
||||
{
|
||||
for (int i=0;i<children_.size();i++) {
|
||||
|
||||
Reference in New Issue
Block a user