summaryrefslogtreecommitdiff
path: root/src/gui/gui.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-03-24 18:51:45 +0300
committerAndrei Karas <akaras@inbox.ru>2014-03-24 18:51:45 +0300
commit641b843fd85d096afdd9b171975df91676179f3b (patch)
tree760c38447030adbdb12361978fa614ccfc9cf9fd /src/gui/gui.cpp
parent5a5de75f298bea6f2b861dc1fb9aaf1f3d35d07c (diff)
downloadmanaverse-641b843fd85d096afdd9b171975df91676179f3b.tar.gz
manaverse-641b843fd85d096afdd9b171975df91676179f3b.tar.bz2
manaverse-641b843fd85d096afdd9b171975df91676179f3b.tar.xz
manaverse-641b843fd85d096afdd9b171975df91676179f3b.zip
fix code style.
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r--src/gui/gui.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index aca1ef4b3..761810c1a 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -873,7 +873,7 @@ void Gui::distributeMouseEvent(Widget *const source,
event.setY(y - widgetY);
std::list<MouseListener*> mouseListeners
- = widget->_getMouseListeners();
+ = widget->getMouseListeners();
unsigned int mouseType = event.getType();
// Send the event to all mouse listeners of the widget.
@@ -1130,9 +1130,9 @@ uint32_t Gui::getMouseState(int *const x, int *const y)
void Gui::setTop(Widget *const top)
{
if (mTop)
- mTop->_setFocusHandler(nullptr);
+ mTop->setFocusHandler(nullptr);
if (top)
- top->_setFocusHandler(mFocusHandler);
+ top->setFocusHandler(mFocusHandler);
mTop = top;
}
@@ -1241,10 +1241,10 @@ Widget* Gui::getKeyEventSource() const
{
Widget* widget = mFocusHandler->getFocused();
- while (widget && widget->_getInternalFocusHandler()
- && widget->_getInternalFocusHandler()->getFocused())
+ while (widget && widget->getInternalFocusHandler()
+ && widget->getInternalFocusHandler()->getFocused())
{
- widget = widget->_getInternalFocusHandler()->getFocused();
+ widget = widget->getInternalFocusHandler()->getFocused();
}
return widget;
@@ -1276,7 +1276,7 @@ void Gui::distributeKeyEvent(KeyEvent &event) const
if (widget->isEnabled())
{
std::list<KeyListener*> keyListeners
- = widget->_getKeyListeners();
+ = widget->getKeyListeners();
const unsigned int eventType = event.getType();
// Send the event to all key listeners of the source widget.