QGuiVariant: use new QColor::setNamedColor(QLatin1String)
Change-Id: If36f9f3c60ee5cea3082a973a4b8ea9d2de1b62f Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>bb10
parent
0be620ac58
commit
c1b1e58de8
|
|
@ -260,8 +260,7 @@ static bool convert(const QVariant::Private *d, int t,
|
|||
static_cast<QColor *>(result)->setNamedColor(*v_cast<QString>(d));
|
||||
return static_cast<QColor *>(result)->isValid();
|
||||
} else if (d->type == QVariant::ByteArray) {
|
||||
static_cast<QColor *>(result)->setNamedColor(QString::fromLatin1(
|
||||
*v_cast<QByteArray>(d)));
|
||||
static_cast<QColor *>(result)->setNamedColor(QLatin1String(*v_cast<QByteArray>(d)));
|
||||
return true;
|
||||
} else if (d->type == QVariant::Brush) {
|
||||
if (v_cast<QBrush>(d)->style() == Qt::SolidPattern) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue