Q_D(QQuickTextInput);
if (c != d->color) {
d->color = c;
+ d->textLayoutDirty = true;
update();
emit colorChanged(c);
}
QPalette p = d->control->palette();
p.setColor(QPalette::Highlight, d->selectionColor);
d->control->setPalette(p);
- if (d->control->hasSelectedText())
+ if (d->control->hasSelectedText()) {
+ d->textLayoutDirty = true;
update();
+ }
emit selectionColorChanged(color);
}
/*!
QPalette p = d->control->palette();
p.setColor(QPalette::HighlightedText, d->selectedTextColor);
d->control->setPalette(p);
- if (d->control->hasSelectedText())
+ if (d->control->hasSelectedText()) {
+ d->textLayoutDirty = true;
update();
+ }
emit selectedTextColorChanged(color);
}