summaryrefslogtreecommitdiff
path: root/src/events/keyevent.h
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/events/keyevent.h
parent7969f0590204ac48d74e98c3211bca27693bac44 (diff)
downloadmanaplus-ec51be4fd71babf30a73332bc4b73edb994ee462.tar.gz
manaplus-ec51be4fd71babf30a73332bc4b73edb994ee462.tar.bz2
manaplus-ec51be4fd71babf30a73332bc4b73edb994ee462.tar.xz
manaplus-ec51be4fd71babf30a73332bc4b73edb994ee462.zip
Convert KeyEvent enum into strong typed enum.
Diffstat (limited to 'src/events/keyevent.h')
-rw-r--r--src/events/keyevent.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/events/keyevent.h b/src/events/keyevent.h
index 3cad1bce2..9f0a54972 100644
--- a/src/events/keyevent.h
+++ b/src/events/keyevent.h
@@ -88,7 +88,7 @@ class KeyEvent: public InputGuiEvent
* @param key The key of the event.
*/
KeyEvent(Widget *const source,
- KeyEventType::Type type,
+ KeyEventTypeT type,
const int actionId,
const Key &key) :
InputGuiEvent(source),
@@ -111,7 +111,7 @@ class KeyEvent: public InputGuiEvent
*
* @return The type of the event.
*/
- KeyEventType::Type getType() const A_WARN_UNUSED
+ KeyEventTypeT getType() const A_WARN_UNUSED
{ return mType; }
/**
@@ -146,7 +146,7 @@ class KeyEvent: public InputGuiEvent
/**
* Holds the type of the key event.
*/
- KeyEventType::Type mType;
+ KeyEventTypeT mType;
int mActionId;
};