"Bo Peng" <[EMAIL PROTECTED]> writes:

>>  #if QT_VERSION >= 0x040200
>> -       item->setForeground(0, QBrush(color));
>> -       item->setForeground(1, QBrush(color));
>> +       item->setForeground(0, QBrush(QColor(color)));
>> +       item->setForeground(1, QBrush(QColor(color)));
>>  #else
>>         item->setTextColor(0, QColor(color));
>>         item->setTextColor(1, QColor(color));
>
> As long as it compiles, put it in. JMarc uses 4.1 so he only tested
> setText(QColor(color)). I used QBrush("black") etc before.

So the QBrush constructor can take a char const * as parameter but not
a QString? That is braindead!

Sorry for the mixup anyway.

JMarc

Reply via email to