Skip to content

Commit

Permalink
Whitespace changes
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelgregorius committed Apr 16, 2024
1 parent fe5b532 commit 0a9f2e3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/gui/tracks/TrackLabelButton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,25 +186,25 @@ void TrackLabelButton::paintEvent(QPaintEvent* pe)
if (m_trackView->getTrack()->type() == Track::Type::Instrument)
{
auto it = dynamic_cast<InstrumentTrack*>(m_trackView->getTrack());
const PixmapLoader * pl;
const PixmapLoader* pl;
auto get_logo = [](InstrumentTrack* it) -> const PixmapLoader*
{
return it->instrument()->key().isValid()
? it->instrument()->key().logo()
: it->instrument()->descriptor()->logo;
};
if( it && it->instrument() &&
if (it && it->instrument() &&
it->instrument()->descriptor() &&
( pl = get_logo(it) ) )
(pl = get_logo(it)))
{
if( pl->pixmapName() != m_iconName )
if (pl->pixmapName() != m_iconName)
{
m_iconName = pl->pixmapName();
setIcon( pl->pixmap() );
setIcon(pl->pixmap());
}
}
}
QToolButton::paintEvent( pe );
QToolButton::paintEvent(pe);
}


Expand Down

0 comments on commit 0a9f2e3

Please sign in to comment.