diff widgets/LevelPanToolButton.cpp @ 1180:6a6a63506e3f levelpanwidget

Some work on play parameters and level controls in property box
author Chris Cannam
date Tue, 06 Dec 2016 09:47:27 +0000
parents fcbfc7fad1f2
children 306c24eeab10
line wrap: on
line diff
--- a/widgets/LevelPanToolButton.cpp	Tue Dec 06 09:20:10 2016 +0000
+++ b/widgets/LevelPanToolButton.cpp	Tue Dec 06 09:47:27 2016 +0000
@@ -170,4 +170,18 @@
     m_lpw->renderTo(this, QRectF(margin, margin, m_pixels, m_pixels), false);
 }
 
+void
+LevelPanToolButton::enterEvent(QEvent *e)
+{
+    QToolButton::enterEvent(e);
+    emit mouseEntered();
+}
 
+void
+LevelPanToolButton::leaveEvent(QEvent *e)
+{
+    QToolButton::enterEvent(e);
+    emit mouseLeft();
+}
+
+