viewerdisplay: force update on keyboard and mouse events
For some reason, QTextEdit can be put into states where it no longer emits paint events, which is what we relied on. Now we force repaints for events we expect to change the visuals, e.g. keyboard/mouse events.
This commit is contained in:
@@ -1178,7 +1178,11 @@ bool ViewerDisplayWidget::ForwardMouseEventToTextEdit(QMouseEvent *event, bool c
|
||||
bool ViewerDisplayWidget::ForwardEventToTextEdit(QEvent *event)
|
||||
{
|
||||
qApp->sendEvent(text_edit_->viewport(), event);
|
||||
return event->isAccepted();
|
||||
bool e = event->isAccepted();
|
||||
if (e) {
|
||||
update();
|
||||
}
|
||||
return e;
|
||||
}
|
||||
|
||||
QPointF ViewerDisplayWidget::AdjustPosByVAlign(QPointF p)
|
||||
|
||||
Reference in New Issue
Block a user