diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2015-10-26 19:48:30 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2015-10-26 19:48:30 +0100 |
commit | 88ad7366a3eb6bc73bc99078ae13302099b76f09 (patch) | |
tree | 64a5f5b3a4b5c187d25e21e21bf2808f12367820 /plugingui/listboxbasic.cc | |
parent | b84e5f74e5513e4cd14fe62b03777be8ee9c2537 (diff) |
Refactored LineEdit and FileBrowser. Renamed all KEY_XYZ event types to KeyXyz.
Diffstat (limited to 'plugingui/listboxbasic.cc')
-rw-r--r-- | plugingui/listboxbasic.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugingui/listboxbasic.cc b/plugingui/listboxbasic.cc index 2aae943..0bfde4c 100644 --- a/plugingui/listboxbasic.cc +++ b/plugingui/listboxbasic.cc @@ -201,7 +201,7 @@ void ListBoxBasic::keyEvent(KeyEvent *e) } switch(e->keycode) { - case KeyEvent::KEY_UP: + case KeyEvent::KeyUp: marked--; if(marked < 0) { @@ -214,7 +214,7 @@ void ListBoxBasic::keyEvent(KeyEvent *e) } break; - case KeyEvent::KEY_DOWN: + case KeyEvent::KeyDown: { // Number of items that can be displayed at a time. int numitems = height() / (font.textHeight() + padding); @@ -232,7 +232,7 @@ void ListBoxBasic::keyEvent(KeyEvent *e) } break; - case KeyEvent::KEY_HOME: + case KeyEvent::KeyHome: marked = 0; if(marked < scroll.value()) { @@ -240,7 +240,7 @@ void ListBoxBasic::keyEvent(KeyEvent *e) } break; - case KeyEvent::KEY_END: + case KeyEvent::KeyEnd: { // Number of items that can be displayed at a time. int numitems = height() / (font.textHeight() + padding); @@ -253,7 +253,7 @@ void ListBoxBasic::keyEvent(KeyEvent *e) } break; - case KeyEvent::KEY_CHARACTER: + case KeyEvent::KeyCharacter: if(e->text == " ") { setSelection(marked); @@ -261,7 +261,7 @@ void ListBoxBasic::keyEvent(KeyEvent *e) } break; - case KeyEvent::KEY_ENTER: + case KeyEvent::KeyEnter: setSelection(marked); selectionNotifier(); break; |