diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-03-24 18:51:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-03-24 18:51:45 +0300 |
commit | 641b843fd85d096afdd9b171975df91676179f3b (patch) | |
tree | 760c38447030adbdb12361978fa614ccfc9cf9fd /src/gui/widgets/basiccontainer.cpp | |
parent | 5a5de75f298bea6f2b861dc1fb9aaf1f3d35d07c (diff) | |
download | mv-641b843fd85d096afdd9b171975df91676179f3b.tar.gz mv-641b843fd85d096afdd9b171975df91676179f3b.tar.bz2 mv-641b843fd85d096afdd9b171975df91676179f3b.tar.xz mv-641b843fd85d096afdd9b171975df91676179f3b.zip |
fix code style.
Diffstat (limited to 'src/gui/widgets/basiccontainer.cpp')
-rw-r--r-- | src/gui/widgets/basiccontainer.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/gui/widgets/basiccontainer.cpp b/src/gui/widgets/basiccontainer.cpp index e81bb2a3e..00386a725 100644 --- a/src/gui/widgets/basiccontainer.cpp +++ b/src/gui/widgets/basiccontainer.cpp @@ -208,7 +208,7 @@ Widget *BasicContainer::getWidgetAt(int x, int y) if (widget->isVisible() && widget->getDimension() .isPointInRect(x, y)) { - return *it;; + return *it; } } @@ -227,15 +227,15 @@ void BasicContainer::logic() BLOCK_END("BasicContainer::logic") } -void BasicContainer::_setFocusHandler(FocusHandler *const focusHandler) +void BasicContainer::setFocusHandler(FocusHandler *const focusHandler) { - Widget::_setFocusHandler(focusHandler); + Widget::setFocusHandler(focusHandler); if (mInternalFocusHandler) return; FOR_EACH (WidgetListConstIterator, iter, mWidgets) - (*iter)->_setFocusHandler(focusHandler); + (*iter)->setFocusHandler(focusHandler); } void BasicContainer::add(Widget *const widget) @@ -245,11 +245,11 @@ void BasicContainer::add(Widget *const widget) mLogicWidgets.push_back(widget); if (!mInternalFocusHandler) - widget->_setFocusHandler(_getFocusHandler()); + widget->setFocusHandler(getFocusHandler()); else - widget->_setFocusHandler(mInternalFocusHandler); + widget->setFocusHandler(mInternalFocusHandler); - widget->_setParent(this); + widget->setParent(this); widget->addDeathListener(this); } @@ -260,8 +260,8 @@ void BasicContainer::remove(Widget* widget) if (*iter == widget) { mWidgets.erase(iter); - widget->_setFocusHandler(nullptr); - widget->_setParent(nullptr); + widget->setFocusHandler(nullptr); + widget->setParent(nullptr); widget->removeDeathListener(this); break; } @@ -281,8 +281,8 @@ void BasicContainer::clear() FOR_EACH (WidgetListConstIterator, iter, mWidgets) { Widget *const widget = *iter; - widget->_setFocusHandler(nullptr); - widget->_setParent(nullptr); + widget->setFocusHandler(nullptr); + widget->setParent(nullptr); widget->removeDeathListener(this); } @@ -367,8 +367,8 @@ void BasicContainer::setInternalFocusHandler(FocusHandler* focusHandler) FOR_EACH (WidgetListConstIterator, iter, mWidgets) { if (!mInternalFocusHandler) - (*iter)->_setFocusHandler(_getFocusHandler()); + (*iter)->setFocusHandler(getFocusHandler()); else - (*iter)->_setFocusHandler(mInternalFocusHandler); + (*iter)->setFocusHandler(mInternalFocusHandler); } } |