Fixed pin body widget hover bug
This commit is contained in:
@@ -6,10 +6,7 @@ using namespace Bloom::Widgets::InsightTargetWidgets;
|
|||||||
using namespace Bloom::Targets;
|
using namespace Bloom::Targets;
|
||||||
|
|
||||||
bool TargetPinBodyWidget::event(QEvent* event) {
|
bool TargetPinBodyWidget::event(QEvent* event) {
|
||||||
if (this->isEnabled()
|
if (this->pinState.has_value() && this->pinState->ioDirection == TargetPinState::IoDirection::OUTPUT) {
|
||||||
&& this->pinState.has_value()
|
|
||||||
&& this->pinState->ioDirection == TargetPinState::IoDirection::OUTPUT
|
|
||||||
) {
|
|
||||||
switch (event->type()) {
|
switch (event->type()) {
|
||||||
case QEvent::Enter: {
|
case QEvent::Enter: {
|
||||||
this->hoverActive = true;
|
this->hoverActive = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user