mirror of
https://github.com/LMMS/lmms.git
synced 2026-03-30 11:53:41 -04:00
Move icon determination into TrackLabelButton again Fully undo the changes made in commit88e0e94dcdbecause the intermediate revert made in commit04ecf73395seems to have led to a performance problem due to the icon being set over and over again in `TrackLabelButton::paintEvent`. The original intention of the changes made in pull request #7114 was to remove the painting code that dynamically determines the icon over and over again. Ideally the icon that is used by an instrument should be somewhat of a "static" property that should be known very early on when an instrument view is created. There should not be any need to dynamically resolve the icon over and over, especially not in a button class very far down in the widget hierarchy. However, due to technical reasons this is not the case in the current code. See pull request #7132 for more details.
3.0 KiB
3.0 KiB