summaryrefslogtreecommitdiff
path: root/plugingui/combobox.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2015-10-26 19:48:30 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2015-10-26 19:48:30 +0100
commit88ad7366a3eb6bc73bc99078ae13302099b76f09 (patch)
tree64a5f5b3a4b5c187d25e21e21bf2808f12367820 /plugingui/combobox.cc
parentb84e5f74e5513e4cd14fe62b03777be8ee9c2537 (diff)
Refactored LineEdit and FileBrowser. Renamed all KEY_XYZ event types to KeyXyz.
Diffstat (limited to 'plugingui/combobox.cc')
-rw-r--r--plugingui/combobox.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugingui/combobox.cc b/plugingui/combobox.cc
index cae854a..4a6d2b5 100644
--- a/plugingui/combobox.cc
+++ b/plugingui/combobox.cc
@@ -173,7 +173,7 @@ void ComboBox::keyEvent(KeyEvent *e)
/*
switch(e->keycode) {
- case KeyEvent::KEY_UP:
+ case KeyEvent::KeyUp:
{
selected--;
if(selected < 0)
@@ -190,7 +190,7 @@ void ComboBox::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);
@@ -210,10 +210,10 @@ void ComboBox::keyEvent(KeyEvent *e)
}
}
break;
- case KeyEvent::KEY_HOME:
+ case KeyEvent::KeyHome:
selected = 0;
break;
- case KeyEvent::KEY_END:
+ case KeyEvent::KeyEnd:
selected = items.size() - 1;
break;
default: