Пример #1
0
void
PanelWidget::leaveEventBase()
{
    TabWidget* parentPane = getParentPane();

    if (parentPane) {
        parentPane->setWidgetMouseOverFocus(this, false);
    }
}
Пример #2
0
bool
PanelWidget::enterEventBase()
{
    TabWidget* parentPane = getParentPane();

    if (parentPane) {
        parentPane->setWidgetMouseOverFocus(this, true);
    }
    if ( _gui && _gui->isFocusStealingPossible() ) {
        _thisWidget->setFocus();

        //Make this stack the active one
        boost::shared_ptr<QUndoStack> stack = getUndoStack();
        if (stack) {
            stack->setActive();
        }
        return true;
    }
    return false;
}