mirror of
https://github.com/LMMS/lmms.git
synced 2026-05-17 11:18:30 -04:00
one hardcoded default colour less
This commit is contained in:
@@ -41,6 +41,9 @@
|
||||
#include "Effect.h"
|
||||
#include "lmmsversion.h"
|
||||
|
||||
// bbTCO::defaultColor()
|
||||
#include "bb_track.h"
|
||||
|
||||
|
||||
|
||||
DataFile::typeDescStruct
|
||||
@@ -680,6 +683,18 @@ void DataFile::upgrade()
|
||||
|
||||
}
|
||||
|
||||
// new default colour for B&B tracks
|
||||
QDomNodeList list = elementsByTagName( "bbtco" );
|
||||
for( int i = 0; !list.item( i ).isNull(); ++i )
|
||||
{
|
||||
QDomElement el = list.item( i ).toElement();
|
||||
unsigned int rgb = el.attribute( "color" ).toUInt();
|
||||
if( rgb == qRgb( 64, 128, 255 ) )
|
||||
{
|
||||
el.setAttribute( "color", bbTCO::defaultColor() );
|
||||
}
|
||||
}
|
||||
|
||||
// Time-signature
|
||||
if ( !m_head.hasAttribute( "timesig_numerator" ) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user