Mercurial > hg > svgui
diff widgets/LevelPanToolButton.h @ 932:37bb4b416c52 tonioni
Render direct to widget (necessary to avoid pixel doubling on OS/X)
author | Chris Cannam |
---|---|
date | Wed, 25 Mar 2015 11:27:46 +0000 |
parents | 86df7de08e03 |
children | 9022635c615a |
line wrap: on
line diff
--- a/widgets/LevelPanToolButton.h Wed Mar 25 11:09:33 2015 +0000 +++ b/widgets/LevelPanToolButton.h Wed Mar 25 11:27:46 2015 +0000 @@ -42,9 +42,6 @@ /// Set pan in the range [-1,1] -- will be rounded void setPan(float); - /// Redraw icon for toolbar button based on level-pan widget contents - void redraw(); - signals: void levelChanged(float); void panChanged(float); @@ -54,6 +51,8 @@ void selfClicked(); protected: + void paintEvent(QPaintEvent *); + LevelPanWidget *m_lpw; int m_pixels; bool m_muted;