| 26 | } |
| 27 | |
| 28 | void LineEdit::keyPressEvent(QKeyEvent *e) |
| 29 | { |
| 30 | m_timer->stop(); |
| 31 | if (e->key() == Qt::Key_Return) { |
| 32 | e->accept(); |
| 33 | emit returnPressed(); |
| 34 | return; |
| 35 | } |
| 36 | m_timer->start(); |
| 37 | QLineEdit::keyPressEvent(e); |
| 38 | } |
| 39 | |
| 40 | void LineEdit::timeOut() |
| 41 | { |