Skip to content

Commit

Permalink
Handle enter and leave events in view plugin sampler action (#678)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasKroes authored Sep 5, 2024
1 parent 4d6686d commit 52d8350
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions ManiVault/src/actions/ViewPluginSamplerAction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,19 @@ bool ViewPluginSamplerAction::eventFilter(QObject* target, QEvent* event)
break;
}

case QEvent::Enter:
{

_samplerPixelSelectionAction->getPixelSelectionTool()->setEnabled(getEnabledAction().isChecked());
break;
}

case QEvent::Leave:
{
_samplerPixelSelectionAction->getPixelSelectionTool()->setEnabled(false);
break;
}

default:
break;
}
Expand Down

0 comments on commit 52d8350

Please sign in to comment.