From 46bb1435a04ec5c28e50890a8129550f90da86ec Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Tue, 7 Jul 2020 22:07:19 +0200 Subject: [PATCH] rename variable --- src/audiomixerboard.cpp | 14 +++++++------- src/audiomixerboard.h | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/audiomixerboard.cpp b/src/audiomixerboard.cpp index 1dc2bf6b..0092ca4b 100755 --- a/src/audiomixerboard.cpp +++ b/src/audiomixerboard.cpp @@ -128,8 +128,8 @@ CChannelFader::CChannelFader ( QWidget* pNW ) pMainGrid->addWidget ( pLabelInstBox ); // reset current fader - strGroupBaseText = "Grp"; // this will most probably overwritten by SetGUIDesign() - iInstrPicFixedWidth = INVALID_INDEX; // this will most probably overwritten by SetGUIDesign() + strGroupBaseText = "Grp"; // this will most probably overwritten by SetGUIDesign() + iInstrPicMaxWidth = INVALID_INDEX; // this will most probably overwritten by SetGUIDesign() Reset(); // add help text to controls @@ -228,7 +228,7 @@ void CChannelFader::SetGUIDesign ( const EGUIDesign eNewDesign ) pcbSolo->setText ( tr ( "SOLO" ) ); strGroupBaseText = tr ( "GRP" ); plbrChannelLevel->SetLevelMeterType ( CLevelMeter::MT_LED ); - iInstrPicFixedWidth = INVALID_INDEX; // no instrument picture scaling + iInstrPicMaxWidth = INVALID_INDEX; // no instrument picture scaling break; case GD_SLIMFADER: @@ -243,7 +243,7 @@ void CChannelFader::SetGUIDesign ( const EGUIDesign eNewDesign ) pcbSolo->setText ( tr ( "S" ) ); strGroupBaseText = tr ( "G" ); plbrChannelLevel->SetLevelMeterType ( CLevelMeter::MT_SLIM_BAR ); - iInstrPicFixedWidth = 18; // scale instrument picture to avoid enlarging the width by the picture + iInstrPicMaxWidth = 18; // scale instrument picture to avoid enlarging the width by the picture break; default: @@ -259,7 +259,7 @@ void CChannelFader::SetGUIDesign ( const EGUIDesign eNewDesign ) pcbSolo->setText ( tr ( "Solo" ) ); strGroupBaseText = tr ( "Grp" ); plbrChannelLevel->SetLevelMeterType ( CLevelMeter::MT_BAR ); - iInstrPicFixedWidth = INVALID_INDEX; // no instrument picture scaling + iInstrPicMaxWidth = INVALID_INDEX; // no instrument picture scaling break; } @@ -631,10 +631,10 @@ void CChannelFader::SetChannelInfos ( const CChannelInfo& cChanInfo ) // set correct picture QPixmap pixInstr ( strCurResourceRef ); - if ( ( iInstrPicFixedWidth != INVALID_INDEX ) && ( pixInstr.width() > iInstrPicFixedWidth ) ) + if ( ( iInstrPicMaxWidth != INVALID_INDEX ) && ( pixInstr.width() > iInstrPicMaxWidth ) ) { // scale instrument picture on request (scale to the width with correct aspect ratio) - plblInstrument->setPixmap ( pixInstr.scaledToWidth ( iInstrPicFixedWidth, Qt::SmoothTransformation ) ); + plblInstrument->setPixmap ( pixInstr.scaledToWidth ( iInstrPicMaxWidth, Qt::SmoothTransformation ) ); } else { diff --git a/src/audiomixerboard.h b/src/audiomixerboard.h index 95fd4d61..3ed2c6be 100755 --- a/src/audiomixerboard.h +++ b/src/audiomixerboard.h @@ -119,7 +119,7 @@ protected: double dPreviousFaderLevel; int iGroupID; QString strGroupBaseText; - int iInstrPicFixedWidth; + int iInstrPicMaxWidth; public slots: void OnLevelValueChanged ( int value ) { SendFaderLevelToServer ( value, false ); }