QPlainTextEdit: not show place holder when having preedit string
Task-number: QTBUG-61210 Change-Id: I4891c21fc4e1923b5929defeacab26114c00a7e3 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
This commit is contained in:
parent
510d18d7ae
commit
e1a0730448
@ -1978,7 +1978,7 @@ void QPlainTextEdit::paintEvent(QPaintEvent *e)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (!placeholderText().isEmpty() && document()->isEmpty()) {
|
if (!placeholderText().isEmpty() && document()->isEmpty() && layout->preeditAreaText().isEmpty()) {
|
||||||
Q_D(QPlainTextEdit);
|
Q_D(QPlainTextEdit);
|
||||||
QColor col = d->control->palette().text().color();
|
QColor col = d->control->palette().text().color();
|
||||||
col.setAlpha(128);
|
col.setAlpha(128);
|
||||||
|
Loading…
Reference in New Issue
Block a user