Use QColor::fromString instead of some deprecated functions

It's a follow-up of a series changes from
78b6876974d2cea087cb229257097052dad5fcf7 in qtbase.

Pick-to: 6.4
Change-Id: I4ad19b07489630a4648b5d6ca4a8c074ed88827b
Reviewed-by: Liang Qi <liang.qi@qt.io>
This commit is contained in:
JiDe Zhang 2022-07-02 13:08:21 +08:00 committed by Liang Qi
parent 425893491d
commit 2720ecf2ee

View File

@ -110,7 +110,7 @@ void QWaylandTextInputMethod::text_input_method_v1_input_method_event_attribute(
attributes.append(QInputMethodEvent::Attribute(QInputMethodEvent::AttributeType(type), startMapped, length));
break;
case QInputMethodEvent::Cursor:
attributes.append(QInputMethodEvent::Attribute(QInputMethodEvent::AttributeType(type), start, length, QColor(value)));
attributes.append(QInputMethodEvent::Attribute(QInputMethodEvent::AttributeType(type), start, length, QColor::fromString(value)));
break;
case QInputMethodEvent::TextFormat:
{