5 LineEdit::LineEdit(QWidget
*parent
)
11 void LineEdit::keyPressEvent(QKeyEvent
*event
) {
13 if( (event
->key() >= Qt::Key_A
&& event
->key() <= Qt::Key_Z
) ||
14 event
->key() == Qt::Key_Space
)
15 Speaker::play("type");
16 else if(event
->key() == Qt::Key_Backspace
)
17 Speaker::play("remove");
19 QLineEdit::keyPressEvent(event
);
22 bool LineEdit::isFreeze() const {
26 void LineEdit::setFreeze(bool flag
) {