From 00f3cbc1d724d2436ca9c6030873ffdd4a19269a Mon Sep 17 00:00:00 2001 From: Paul Giblock Date: Sun, 8 Jun 2008 19:28:08 +0000 Subject: [PATCH] improved peak-control loading/saving git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1108 0778d3d1-df1d-0410-868b-ea421aaaa00d --- .../peak_controller_effect_controls.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/peak_controller_effect/peak_controller_effect_controls.cpp b/plugins/peak_controller_effect/peak_controller_effect_controls.cpp index af04a8781..c71ad2e0a 100644 --- a/plugins/peak_controller_effect/peak_controller_effect_controls.cpp +++ b/plugins/peak_controller_effect/peak_controller_effect_controls.cpp @@ -41,6 +41,9 @@ peakControllerEffectControls( peakControllerEffect * _eff ) : void peakControllerEffectControls::loadSettings( const QDomElement & _this ) { + m_baseModel.setValue( _this.attribute( "base" ).toFloat() ); + m_amountModel.setValue( _this.attribute( "amount" ).toFloat() ); + m_muteModel.setValue( _this.attribute( "mute" ).toFloat() ); } @@ -49,6 +52,9 @@ void peakControllerEffectControls::loadSettings( const QDomElement & _this ) void peakControllerEffectControls::saveSettings( QDomDocument & _doc, QDomElement & _this ) { + _this.setAttribute( "base", m_baseModel.value() ); + _this.setAttribute( "amount", m_amountModel.value() ); + _this.setAttribute( "mute", m_muteModel.value() ); }