Improve LB302 with 3 new shapes and button-selectors.
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1657 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -704,6 +704,18 @@ void multimediaProject::upgrade( void )
|
||||
s.replace( "drumsynth/r_b", "drumsynth/r_n_b" );
|
||||
el.setAttribute( "src", s );
|
||||
}
|
||||
list = elementsByTagName( "lb302" );
|
||||
for( int i = 0; !list.item( i ).isNull(); ++i )
|
||||
{
|
||||
QDomElement el = list.item( i ).toElement();
|
||||
int s = el.attribute( "shape" ).toInt();
|
||||
if( s >= 1 )
|
||||
{
|
||||
s--;
|
||||
}
|
||||
el.setAttribute( "shape", QString("%1").arg(s) );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Time-signature
|
||||
|
||||
Reference in New Issue
Block a user