Mercurial > hg > svgui
diff widgets/AudioDial.h @ 34:c43f2c4f66f2
* As previous commit
author | Chris Cannam |
---|---|
date | Fri, 17 Feb 2006 18:11:08 +0000 |
parents | 37b110168acf |
children | 01ab51f72e84 |
line wrap: on
line diff
--- a/widgets/AudioDial.h Fri Feb 17 18:04:26 2006 +0000 +++ b/widgets/AudioDial.h Fri Feb 17 18:11:08 2006 +0000 @@ -84,6 +84,8 @@ */ void setMouseDial(bool mouseDial); + void setDefaultValue(int defaultValue); + protected: void drawTick(QPainter &paint, float angle, int size, bool internal); virtual void paintEvent(QPaintEvent *); @@ -92,11 +94,14 @@ virtual void mousePressEvent(QMouseEvent *pMouseEvent); virtual void mouseMoveEvent(QMouseEvent *pMouseEvent); virtual void mouseReleaseEvent(QMouseEvent *pMouseEvent); + virtual void mouseDoubleClickEvent(QMouseEvent *pMouseEvent); private: QColor m_knobColor; QColor m_meterColor; + int m_defaultValue; + // Alternate mouse behavior tracking. bool m_mouseDial; bool m_mousePressed;