Fix coding style.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=678168
This commit is contained in:
parent
c4ff3b9135
commit
32a450bb4d
@ -133,17 +133,15 @@ QSizeF LineEdit::sizeHint() const
|
|||||||
|
|
||||||
void LineEdit::keyPressEvent(QKeyEvent* event)
|
void LineEdit::keyPressEvent(QKeyEvent* event)
|
||||||
{
|
{
|
||||||
if (event->key() == Qt::Key_Enter || event->key() == Qt::Key_Return)
|
if (event->key() == Qt::Key_Enter || event->key() == Qt::Key_Return) {
|
||||||
{
|
emit editingFinished();
|
||||||
emit editingFinished();
|
} else {
|
||||||
} else {
|
QGraphicsTextItem::keyPressEvent(event); //let QT handle other keypresses
|
||||||
QGraphicsTextItem::keyPressEvent(event); //let QT handle other keypresses
|
}
|
||||||
}
|
if (QGraphicsTextItem::toHtml() != oldText) {
|
||||||
if (this->toHtml()!=oldText)
|
oldText = QGraphicsTextItem::toHtml();
|
||||||
{
|
emit textChanged(oldText);
|
||||||
oldText=this->toHtml();
|
}
|
||||||
emit textChanged(oldText);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Plasma
|
} // namespace Plasma
|
||||||
|
Loading…
Reference in New Issue
Block a user