summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-30 00:41:05 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-30 00:41:05 +0300
commitec51be4fd71babf30a73332bc4b73edb994ee462 (patch)
tree0199da5c75066083b4287204d3532f69420764eb /src/gui
parent7969f0590204ac48d74e98c3211bca27693bac44 (diff)
downloadplus-ec51be4fd71babf30a73332bc4b73edb994ee462.tar.gz
plus-ec51be4fd71babf30a73332bc4b73edb994ee462.tar.bz2
plus-ec51be4fd71babf30a73332bc4b73edb994ee462.tar.xz
plus-ec51be4fd71babf30a73332bc4b73edb994ee462.zip
Convert KeyEvent enum into strong typed enum.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index 49b6d2774..4cfd83f0f 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -1263,7 +1263,7 @@ void Gui::distributeKeyEvent(KeyEvent &event) const
std::list<KeyListener*> keyListeners
= widget->getKeyListeners();
- const KeyEventType::Type eventType = event.getType();
+ const KeyEventTypeT eventType = event.getType();
// Send the event to all key listeners of the source widget.
FOR_EACH (std::list<KeyListener*>::const_iterator,
it, keyListeners)
@@ -1296,7 +1296,7 @@ void Gui::distributeKeyEvent(KeyEvent &event) const
void Gui::distributeKeyEventToGlobalKeyListeners(KeyEvent& event)
{
BLOCK_START("Gui::distributeKeyEventToGlobalKeyListeners")
- const KeyEventType::Type eventType = event.getType();
+ const KeyEventTypeT eventType = event.getType();
FOR_EACH (KeyListenerListIterator, it, mKeyListeners)
{
switch (eventType)