| 189 | |
| 190 | |
| 191 | void TrackLabelButton::paintEvent( QPaintEvent * _pe ) |
| 192 | { |
| 193 | if( m_trackView->getTrack()->type() == Track::InstrumentTrack ) |
| 194 | { |
| 195 | InstrumentTrack * it = |
| 196 | dynamic_cast<InstrumentTrack *>( m_trackView->getTrack() ); |
| 197 | const PixmapLoader * pl; |
| 198 | if( it && it->instrument() && |
| 199 | it->instrument()->descriptor() && |
| 200 | ( pl = it->instrument()->descriptor()->logo ) ) |
| 201 | { |
| 202 | if( pl->pixmapName() != m_iconName ) |
| 203 | { |
| 204 | m_iconName = pl->pixmapName(); |
| 205 | setIcon( pl->pixmap() ); |
| 206 | } |
| 207 | } |
| 208 | } |
| 209 | QToolButton::paintEvent( _pe ); |
| 210 | } |
| 211 | |
| 212 | |
| 213 |
nothing calls this directly
no test coverage detected