ColorButton: QImage colour formats are now specified with an enum

This commit is contained in:
Joel Holdsworth 2014-04-12 17:37:54 +01:00
parent a8214ea662
commit 2ff97ff441
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ ColorButton::setColor( const QColor & c )
{
m_color = c;
QImage img( 16, 12, 32 );
QImage img( 16, 12, QImage::Format_RGB32 );
img.fill(m_color.rgb());
for (int i=0; i<16; ++i)
{