mirror of https://github.com/jhol/qtdmm.git
ColorButton: QImage colour formats are now specified with an enum
This commit is contained in:
parent
a8214ea662
commit
2ff97ff441
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue