Revert HTML too when defaultText is removed.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=679088
This commit is contained in:
Thomas Georgiou 2007-06-22 23:36:38 +00:00
parent 68a305c511
commit 40d9432574

View File

@ -182,7 +182,7 @@ void LineEdit::keyPressEvent(QKeyEvent *event)
void LineEdit::focusInEvent(QFocusEvent *event)
{
if (QGraphicsTextItem::toPlainText() == d->defaultTextPlain) {
QGraphicsTextItem::setPlainText(QString());
QGraphicsTextItem::setHtml(QString());
}
QGraphicsTextItem::focusInEvent(event);
}