summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-30 01:01:04 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-30 01:01:04 +0300
commit2e07a7af24cf8a2928ab6a3431ab5b01b29969bb (patch)
tree8e3ab15e6ce2f6e085f5c7be0d4c9a43ef85f44a /src/gui
parentf29616d8d1309ee135afe2b2e7baf1d91d677a95 (diff)
downloadmanaplus-2e07a7af24cf8a2928ab6a3431ab5b01b29969bb.tar.gz
manaplus-2e07a7af24cf8a2928ab6a3431ab5b01b29969bb.tar.bz2
manaplus-2e07a7af24cf8a2928ab6a3431ab5b01b29969bb.tar.xz
manaplus-2e07a7af24cf8a2928ab6a3431ab5b01b29969bb.zip
Convert MouseEventType enum into strong typed enum.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/gui.cpp4
-rw-r--r--src/gui/gui.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index 23b640737..f00821c60 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -802,7 +802,7 @@ void Gui::updateFonts()
}
void Gui::distributeMouseEvent(Widget *const source,
- const MouseEventType::Type type,
+ const MouseEventTypeT type,
const MouseButtonT button,
const int x, const int y,
const bool force,
@@ -853,7 +853,7 @@ void Gui::distributeMouseEvent(Widget *const source,
std::list<MouseListener*> mouseListeners
= widget->getMouseListeners();
- const MouseEventType::Type mouseType = event.getType();
+ const MouseEventTypeT mouseType = event.getType();
// Send the event to all mouse listeners of the widget.
FOR_EACH (std::list<MouseListener*>::const_iterator,
it, mouseListeners)
diff --git a/src/gui/gui.h b/src/gui/gui.h
index b1d443b81..8a2935208 100644
--- a/src/gui/gui.h
+++ b/src/gui/gui.h
@@ -328,7 +328,7 @@ class Gui final
void handleMouseInput();
void distributeMouseEvent(Widget *const source,
- const MouseEventType::Type type,
+ const MouseEventTypeT type,
const MouseButtonT button,
const int x, const int y,
const bool force = false,