From 9ffeae441d26df8ed240937f4b3985dece11b48f Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Fri, 21 Mar 2014 10:43:26 +0100 Subject: [PATCH] AutomatableModel: avoid hiding virtual functions by overload --- include/AutomatableModel.h | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/include/AutomatableModel.h b/include/AutomatableModel.h index 59fee5215..7e9c9e891 100644 --- a/include/AutomatableModel.h +++ b/include/AutomatableModel.h @@ -193,10 +193,13 @@ public: void unlinkAllModels(); - virtual void saveSettings( QDomDocument& doc, QDomElement& element, - const QString& name = QString( "value" ) ); + /*! \brief Saves settings (value, automation links and controller connections) of AutomatableModel into + specified DOM element using as attribute/node name */ + void saveSettings( QDomDocument& doc, QDomElement& element, const QString& name ); - virtual void loadSettings( const QDomElement& element, const QString& name = QString( "value" ) ); + /*! \brief Loads settings (value, automation links and controller connections) of AutomatableModel from + specified DOM element using as attribute/node name */ + void loadSettings( const QDomElement& element, const QString& name ); virtual QString nodeName() const { @@ -233,6 +236,16 @@ public slots: protected: + virtual void saveSettings( QDomDocument& doc, QDomElement& element ) + { + saveSettings( doc, element, "value" ); + } + + virtual void loadSettings( const QDomElement& element ) + { + loadSettings( element, "value" ); + } + virtual void redoStep( JournalEntry& je ); virtual void undoStep( JournalEntry& je );