comparison 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
comparison
equal deleted inserted replaced
1179:7c31eb5bc77d 1180:6a6a63506e3f
168 168
169 double margin = (double(height()) - m_pixels) / 2.0; 169 double margin = (double(height()) - m_pixels) / 2.0;
170 m_lpw->renderTo(this, QRectF(margin, margin, m_pixels, m_pixels), false); 170 m_lpw->renderTo(this, QRectF(margin, margin, m_pixels, m_pixels), false);
171 } 171 }
172 172
173 void
174 LevelPanToolButton::enterEvent(QEvent *e)
175 {
176 QToolButton::enterEvent(e);
177 emit mouseEntered();
178 }
173 179
180 void
181 LevelPanToolButton::leaveEvent(QEvent *e)
182 {
183 QToolButton::enterEvent(e);
184 emit mouseLeft();
185 }
186
187