|
29 | 29 | * CChanneFader * |
30 | 30 | \******************************************************************************/ |
31 | 31 | CChannelFader::CChannelFader ( QWidget* pNW ) : |
32 | | - eDesign ( GD_STANDARD ) |
| 32 | + eDesign ( GD_STANDARD ), |
| 33 | + BitmapMutedIcon( QString::fromUtf8 ( ":/png/fader/res/mutediconorange.png" ) ) |
33 | 34 | { |
34 | 35 | // create new GUI control objects and store pointers to them (note that |
35 | 36 | // QWidget takes the ownership of the pMainGrid so that this only has |
@@ -86,7 +87,7 @@ CChannelFader::CChannelFader ( QWidget* pNW ) : |
86 | 87 | pPan->setRange ( 0, AUD_MIX_PAN_MAX ); |
87 | 88 | pPan->setValue ( AUD_MIX_PAN_MAX / 2 ); |
88 | 89 | pPan->setNotchesVisible ( true ); |
89 | | - pInfoLabel->setMinimumHeight ( pPanLabel->height() ); // prevents jitter when muting/unmuting (#811) |
| 90 | + pInfoLabel->setMinimumHeight ( 14 ); // prevents jitter when muting/unmuting (#811) |
90 | 91 | pInfoLabel->setAlignment ( Qt::AlignTop ); |
91 | 92 | pPanInfoGrid->addWidget ( pPanLabel, 0, Qt::AlignLeft | Qt::AlignTop ); |
92 | 93 | pPanInfoGrid->addWidget ( pInfoLabel, 0, Qt::AlignHCenter | Qt::AlignTop ); |
@@ -490,12 +491,12 @@ void CChannelFader::SetRemoteFaderIsMute ( const bool bIsMute ) |
490 | 491 | { |
491 | 492 | if ( bIsMute ) |
492 | 493 | { |
493 | | - // show orange utf8 SPEAKER WITH CANCELLATION STROKE (U+1F507) |
494 | | - pInfoLabel->setText ( "<font color=\"orange\">🔇</font>" ); |
| 494 | + // show muted icon orange |
| 495 | + pInfoLabel->setPixmap( BitmapMutedIcon ); |
495 | 496 | } |
496 | 497 | else |
497 | 498 | { |
498 | | - pInfoLabel->setText ( "" ); |
| 499 | + pInfoLabel->setPixmap( QPixmap() ); |
499 | 500 | } |
500 | 501 | } |
501 | 502 |
|
|
0 commit comments