Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.7.0
-
None
-
fad4cdb70323a2c1925c31917ce2b6cff62748b0
Description
QmlGraphicsTextInput::setHAlign e.g. is not calling updateRect(). So the paint cache is not cleared and the alignment change is not reflected in the next paint.
For example:
void QmlGraphicsTextInput::setHAlign(HAlignment align)
{
Q_D(QmlGraphicsTextInput);
if(align == d->hAlign)
return;
d->hAlign = align;
emit horizontalAlignmentChanged(d->hAlign);
}
should be:
void QmlGraphicsTextInput::setHAlign(HAlignment align)
{
Q_D(QmlGraphicsTextInput);
if(align == d->hAlign)
return;
d->hAlign = align;
updateRect();
emit horizontalAlignmentChanged(d->hAlign);
}
should be