Skip to content

Commit

Permalink
LineEditView: Accept some events
Browse files Browse the repository at this point in the history
  • Loading branch information
MrStevns committed Nov 10, 2024
1 parent be8bdb0 commit 41d2ad5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/src/lineeditwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ void LineEditWidget::mouseDoubleClickEvent(QMouseEvent* event)
reloadStylesheet();

// There's no ignore event here because in this case we want to catch it.
// The event is ignored explicitly
// so that we can allow it to propergate up the chain
event->accept();
}

void LineEditWidget::focusOutEvent(QFocusEvent *event)
Expand Down Expand Up @@ -100,6 +103,8 @@ void LineEditWidget::keyPressEvent(QKeyEvent* event)
setReadOnly(true);
}
reloadStylesheet();

event->accept();
}

void LineEditWidget::deselect()
Expand Down

0 comments on commit 41d2ad5

Please sign in to comment.