comparison widgets/LevelPanToolButton.cpp @ 933:9022635c615a tonioni

Fixes to enabled/disabled state in level-pan tool button
author Chris Cannam
date Wed, 25 Mar 2015 11:41:17 +0000
parents 37bb4b416c52
children 325a7aa69055
comparison
equal deleted inserted replaced
932:37bb4b416c52 933:9022635c615a
73 73
74 QPixmap px(m_pixels, m_pixels); 74 QPixmap px(m_pixels, m_pixels);
75 px.fill(Qt::transparent); 75 px.fill(Qt::transparent);
76 setIcon(px); 76 setIcon(px);
77 77
78 m_lpw->setFixedWidth(m_pixels * 4); 78 m_lpw->setFixedWidth(m_pixels * 3);
79 m_lpw->setFixedHeight(m_pixels * 4); 79 m_lpw->setFixedHeight(m_pixels * 3);
80 } 80 }
81 81
82 void 82 void
83 LevelPanToolButton::setLevel(float level) 83 LevelPanToolButton::setLevel(float level)
84 { 84 {
89 void 89 void
90 LevelPanToolButton::setPan(float pan) 90 LevelPanToolButton::setPan(float pan)
91 { 91 {
92 m_lpw->setPan(pan); 92 m_lpw->setPan(pan);
93 update(); 93 update();
94 }
95
96 void
97 LevelPanToolButton::setEnabled(bool enabled)
98 {
99 m_lpw->setEnabled(enabled);
100 QToolButton::setEnabled(enabled);
94 } 101 }
95 102
96 void 103 void
97 LevelPanToolButton::selfLevelChanged(float level) 104 LevelPanToolButton::selfLevelChanged(float level)
98 { 105 {