Logo Search packages:      
Sourcecode: ktechlab version File versions

void View::setFocusWidget ( QWidget *  focusWidget  )  [protected]

This function should be called in the constructor of the child class (e.g. in ItemView or TextView) to set the widget which receives focus events.

Definition at line 91 of file view.cpp.

{
      assert( focusWidget );
      assert( !m_pFocusWidget );
      
      if ( hasFocus() )
            focusWidget->setFocus();
      
      m_pFocusWidget = focusWidget;
      setFocusProxy( m_pFocusWidget );
      m_pFocusWidget->installEventFilter( this );
      m_pFocusWidget->setFocusPolicy( ClickFocus );
}


Generated by  Doxygen 1.6.0   Back to index