From 2e07a7af24cf8a2928ab6a3431ab5b01b29969bb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 30 May 2015 01:01:04 +0300 Subject: Convert MouseEventType enum into strong typed enum. --- src/gui/gui.cpp | 4 ++-- src/gui/gui.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui') 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 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::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, -- cgit v1.2.3-60-g2f50