SerializingObject: made saveSettings() and loadSettings() pure virtual

All classes inheriting from SerializingObject should also provide
according functionality, therefore ensure, they implement methods for
loading and saving settings.
This commit is contained in:
Tobias Doerffel
2014-03-21 10:47:05 +01:00
parent 729838fa08
commit d4bbaa58b4
6 changed files with 81 additions and 31 deletions

View File

@@ -1,6 +1,6 @@
/*
* ladspa_browser.h - dialog to display information about installed LADSPA
* plugins
* plugins
*
* Copyright (c) 2006-2008 Danny McRae <khjklujn/at/users.sourceforge.net>
* Copyright (c) 2009 Tobias Doerffel <tobydox/at/users.sourceforge.net>
@@ -68,6 +68,18 @@ public:
virtual QString nodeName() const;
virtual void saveSettings( QDomDocument& doc, QDomElement& element )
{
Q_UNUSED(doc)
Q_UNUSED(element)
}
virtual void loadSettings( const QDomElement& element )
{
Q_UNUSED(element)
}
} ;