Fix coding style.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=678168
This commit is contained in:
Thomas Georgiou 2007-06-20 20:28:55 +00:00
parent c4ff3b9135
commit 32a450bb4d

View File

@ -133,17 +133,15 @@ QSizeF LineEdit::sizeHint() const
void LineEdit::keyPressEvent(QKeyEvent* event)
{
if (event->key() == Qt::Key_Enter || event->key() == Qt::Key_Return)
{
emit editingFinished();
} else {
QGraphicsTextItem::keyPressEvent(event); //let QT handle other keypresses
}
if (this->toHtml()!=oldText)
{
oldText=this->toHtml();
emit textChanged(oldText);
}
if (event->key() == Qt::Key_Enter || event->key() == Qt::Key_Return) {
emit editingFinished();
} else {
QGraphicsTextItem::keyPressEvent(event); //let QT handle other keypresses
}
if (QGraphicsTextItem::toHtml() != oldText) {
oldText = QGraphicsTextItem::toHtml();
emit textChanged(oldText);
}
}
} // namespace Plasma