equal
deleted
inserted
replaced
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 } |