summaryrefslogtreecommitdiff
path: root/src/gui/gui.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-03-21 19:45:48 +0300
committerAndrei Karas <akaras@inbox.ru>2014-03-21 19:45:48 +0300
commit60b40c0c68e9cffbc5f48d4f672d99009488f8b1 (patch)
tree7d2efefb965c0ae928eb80313f2f37fa34cf42b4 /src/gui/gui.cpp
parent3ed0b5f6edce152fa2eca9c84d64cbeec8ac0173 (diff)
downloadmv-60b40c0c68e9cffbc5f48d4f672d99009488f8b1.tar.gz
mv-60b40c0c68e9cffbc5f48d4f672d99009488f8b1.tar.bz2
mv-60b40c0c68e9cffbc5f48d4f672d99009488f8b1.tar.xz
mv-60b40c0c68e9cffbc5f48d4f672d99009488f8b1.zip
Rename mouseEvent variables into event.
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r--src/gui/gui.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index 5998f1321..2814de4bb 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -849,7 +849,7 @@ void Gui::distributeMouseEvent(Widget *const source,
}
}
- MouseEvent mouseEvent(source,
+ MouseEvent event(source,
type, button,
x, y, mClickCount);
@@ -869,13 +869,13 @@ void Gui::distributeMouseEvent(Widget *const source,
int widgetY;
widget->getAbsolutePosition(widgetX, widgetY);
- mouseEvent.setX(x - widgetX);
- mouseEvent.setY(y - widgetY);
+ event.setX(x - widgetX);
+ event.setY(y - widgetY);
std::list<MouseListener*> mouseListeners
= widget->_getMouseListeners();
- unsigned int mouseType = mouseEvent.getType();
+ unsigned int mouseType = event.getType();
// Send the event to all mouse listeners of the widget.
FOR_EACH (std::list<MouseListener*>::const_iterator,
it, mouseListeners)
@@ -883,32 +883,32 @@ void Gui::distributeMouseEvent(Widget *const source,
switch (mouseType)
{
case MouseEvent::ENTERED:
- (*it)->mouseEntered(mouseEvent);
+ (*it)->mouseEntered(event);
break;
case MouseEvent::EXITED:
- (*it)->mouseExited(mouseEvent);
+ (*it)->mouseExited(event);
break;
case MouseEvent::MOVED:
- (*it)->mouseMoved(mouseEvent);
+ (*it)->mouseMoved(event);
break;
case MouseEvent::PRESSED:
- (*it)->mousePressed(mouseEvent);
+ (*it)->mousePressed(event);
break;
case MouseEvent::RELEASED:
case 100: // manual hack for release on target after drag
- (*it)->mouseReleased(mouseEvent);
+ (*it)->mouseReleased(event);
break;
case MouseEvent::WHEEL_MOVED_UP:
- (*it)->mouseWheelMovedUp(mouseEvent);
+ (*it)->mouseWheelMovedUp(event);
break;
case MouseEvent::WHEEL_MOVED_DOWN:
- (*it)->mouseWheelMovedDown(mouseEvent);
+ (*it)->mouseWheelMovedDown(event);
break;
case MouseEvent::DRAGGED:
- (*it)->mouseDragged(mouseEvent);
+ (*it)->mouseDragged(event);
break;
case MouseEvent::CLICKED:
- (*it)->mouseClicked(mouseEvent);
+ (*it)->mouseClicked(event);
break;
default:
break;