QTfrontend/ui/widget/lineeditcursor.cpp
changeset 8434 4821897a0f10
parent 8385 9e8924ff9813
child 9080 9b42757d7e71
equal deleted inserted replaced
8432:f2d57e987ba9 8434:4821897a0f10
    20 
    20 
    21 #include "lineeditcursor.h"
    21 #include "lineeditcursor.h"
    22 
    22 
    23 void LineEditCursor::keyPressEvent(QKeyEvent * event)
    23 void LineEditCursor::keyPressEvent(QKeyEvent * event)
    24 {
    24 {
    25 	if (event->key() == Qt::Key_Up)
    25     if (event->key() == Qt::Key_Up)
    26 		emit moveUp();
    26         emit moveUp();
    27 	else if (event->key() == Qt::Key_Down)
    27     else if (event->key() == Qt::Key_Down)
    28 		emit moveDown();
    28         emit moveDown();
    29 	else if (event->key() == Qt::Key_Left)
    29     else if (event->key() == Qt::Key_Left)
    30 		emit moveLeft();
    30         emit moveLeft();
    31 	else if (event->key() == Qt::Key_Right)
    31     else if (event->key() == Qt::Key_Right)
    32 		emit moveRight();
    32         emit moveRight();
    33 	else
    33     else
    34 		QLineEdit::keyPressEvent(event);
    34         QLineEdit::keyPressEvent(event);
    35 }
    35 }