aboutsummaryrefslogtreecommitdiffstats
path: root/gui/fpgaviewwidget.cc
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2018-08-22 17:38:42 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2018-08-22 17:38:42 +0200
commitad84df7974a82d657938a226da2ceace150cc068 (patch)
treeae1dba96b357c17bb5e42fdb1d674f83aa625a10 /gui/fpgaviewwidget.cc
parent4cc49ef6e3d01dba409188cc7d2c86f5bbb43391 (diff)
downloadnextpnr-ad84df7974a82d657938a226da2ceace150cc068.tar.gz
nextpnr-ad84df7974a82d657938a226da2ceace150cc068.tar.bz2
nextpnr-ad84df7974a82d657938a226da2ceace150cc068.zip
Hover on items in tree
Diffstat (limited to 'gui/fpgaviewwidget.cc')
-rw-r--r--gui/fpgaviewwidget.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/gui/fpgaviewwidget.cc b/gui/fpgaviewwidget.cc
index 2b0a3eff..53ee7282 100644
--- a/gui/fpgaviewwidget.cc
+++ b/gui/fpgaviewwidget.cc
@@ -559,6 +559,14 @@ void FPGAViewWidget::onHighlightGroupChanged(std::vector<DecalXY> decals, int gr
pokeRenderer();
}
+void FPGAViewWidget::onHoverItemChanged(DecalXY decal)
+{
+ QMutexLocker locked(&rendererArgsLock_);
+ rendererArgs_->hoveredDecal = decal;
+ rendererArgs_->changed = true;
+ pokeRenderer();
+}
+
void FPGAViewWidget::resizeGL(int width, int height) {}
boost::optional<FPGAViewWidget::PickedElement> FPGAViewWidget::pickElement(float worldx, float worldy)