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:
parent
425893491d
commit
2720ecf2ee
@ -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:
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user