mirror of
https://github.com/YosysHQ/nextpnr.git
synced 2026-04-10 23:01:12 +00:00
Fix hover when cursor leaves view, fixes #63
This commit is contained in:
@@ -781,4 +781,12 @@ void FPGAViewWidget::zoomOutbound()
|
||||
}
|
||||
}
|
||||
|
||||
void FPGAViewWidget::leaveEvent(QEvent *event)
|
||||
{
|
||||
QMutexLocker locked(&rendererArgsLock_);
|
||||
rendererArgs_->hoveredDecal = DecalXY();
|
||||
rendererArgs_->changed = true;
|
||||
pokeRenderer();
|
||||
}
|
||||
|
||||
NEXTPNR_NAMESPACE_END
|
||||
|
||||
@@ -107,6 +107,7 @@ class FPGAViewWidget : public QOpenGLWidget, protected QOpenGLFunctions
|
||||
void wheelEvent(QWheelEvent *event) Q_DECL_OVERRIDE;
|
||||
QSize minimumSizeHint() const override;
|
||||
QSize sizeHint() const override;
|
||||
void leaveEvent(QEvent *event) override;
|
||||
|
||||
public Q_SLOTS:
|
||||
void newContext(Context *ctx);
|
||||
|
||||
Reference in New Issue
Block a user