Logo Search packages:      
Sourcecode: qonk version File versions  Download package

void gcn::Widget::_setFocusHandler ( FocusHandler focusHandler  )  [virtual]

Sets the FocusHandler to be used.

WARNING: This function is used internally and should not be called or overloaded unless you know what you are doing.

Parameters:
focusHandler the FocusHandler to use.

Reimplemented in gcn::BasicContainer.

Definition at line 306 of file widget.cpp.

References gcn::FocusHandler::add(), releaseModalFocus(), and gcn::FocusHandler::remove().

Referenced by gcn::BasicContainer::_setFocusHandler(), gcn::BasicContainer::add(), gcn::BasicContainer::remove(), gcn::Gui::setTop(), and ~Widget().

    {
        if (mFocusHandler)
        {
            releaseModalFocus();
            mFocusHandler->remove(this);
        }

        if (focusHandler)
        {
            focusHandler->add(this);
        }

        mFocusHandler = focusHandler;
    }


Generated by  Doxygen 1.6.0   Back to index