void PanelWidget::leaveEventBase() { TabWidget* parentPane = getParentPane(); if (parentPane) { parentPane->setWidgetMouseOverFocus(this, false); } }
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; }