m_arpDirectionModel sort element order (#3171)
This commit is contained in:
@@ -165,8 +165,8 @@ public:
|
||||
ArpDirUp,
|
||||
ArpDirDown,
|
||||
ArpDirUpAndDown,
|
||||
ArpDirRandom,
|
||||
ArpDirDownAndUp,
|
||||
ArpDirRandom,
|
||||
NumArpDirections
|
||||
} ;
|
||||
|
||||
|
||||
@@ -883,6 +883,21 @@ void DataFile::upgrade_1_1_91()
|
||||
el.setAttribute( a, ( el.attribute( a ) == "0" ) ? "1" : "0" );
|
||||
}
|
||||
}
|
||||
|
||||
list = elementsByTagName( "arpeggiator" );
|
||||
for( int i = 0; !list.item( i ).isNull(); ++i )
|
||||
{
|
||||
QDomElement el = list.item( i ).toElement();
|
||||
// Swap elements ArpDirRandom and ArpDirDownAndUp
|
||||
if( el.attribute( "arpdir" ) == "3" )
|
||||
{
|
||||
el.setAttribute( "arpdir", "4" );
|
||||
}
|
||||
else if( el.attribute( "arpdir" ) == "4" )
|
||||
{
|
||||
el.setAttribute( "arpdir", "3" );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -320,8 +320,8 @@ InstrumentFunctionArpeggio::InstrumentFunctionArpeggio( Model * _parent ) :
|
||||
m_arpDirectionModel.addItem( tr( "Up" ), new PixmapLoader( "arp_up" ) );
|
||||
m_arpDirectionModel.addItem( tr( "Down" ), new PixmapLoader( "arp_down" ) );
|
||||
m_arpDirectionModel.addItem( tr( "Up and down" ), new PixmapLoader( "arp_up_and_down" ) );
|
||||
m_arpDirectionModel.addItem( tr( "Random" ), new PixmapLoader( "arp_random" ) );
|
||||
m_arpDirectionModel.addItem( tr( "Down and up" ), new PixmapLoader( "arp_up_and_down" ) );
|
||||
m_arpDirectionModel.addItem( tr( "Random" ), new PixmapLoader( "arp_random" ) );
|
||||
m_arpDirectionModel.setInitValue( ArpDirUp );
|
||||
|
||||
m_arpModeModel.addItem( tr( "Free" ), new PixmapLoader( "arp_free" ) );
|
||||
|
||||
Reference in New Issue
Block a user