prepare for pull request: #356
This commit is contained in:
parent
e1b982c34c
commit
e4b01fa395
2 changed files with 9 additions and 8 deletions
|
@ -314,7 +314,7 @@ void CChannelFader::Reset()
|
|||
plblInstrument->setToolTip ( "" );
|
||||
plblCountryFlag->setVisible ( false );
|
||||
plblCountryFlag->setToolTip ( "" );
|
||||
strReceivedName = "";
|
||||
cReceivedChanInfo = CChannelInfo();
|
||||
SetupFaderTag ( SL_NOT_SET );
|
||||
|
||||
// set a defined tool tip time out
|
||||
|
@ -438,15 +438,15 @@ void CChannelFader::SetChannelLevel ( const uint16_t iLevel )
|
|||
|
||||
void CChannelFader::SetChannelInfos ( const CChannelInfo& cChanInfo )
|
||||
{
|
||||
// store received channel info
|
||||
cReceivedChanInfo = cChanInfo;
|
||||
|
||||
// init properties for the tool tip
|
||||
int iTTInstrument = CInstPictures::GetNotUsedInstrument();
|
||||
QLocale::Country eTTCountry = QLocale::AnyCountry;
|
||||
|
||||
|
||||
// Label text --------------------------------------------------------------
|
||||
// store original received name
|
||||
strReceivedName = cChanInfo.strName;
|
||||
|
||||
// break text at predefined position
|
||||
const int iBreakPos = MAX_LEN_FADER_TAG / 2;
|
||||
|
||||
|
@ -521,9 +521,9 @@ void CChannelFader::SetChannelInfos ( const CChannelInfo& cChanInfo )
|
|||
QString strToolTip = "";
|
||||
|
||||
// alias/name
|
||||
if ( !strReceivedName.isEmpty() )
|
||||
if ( !cChanInfo.strName.isEmpty() )
|
||||
{
|
||||
strToolTip += "<h4>" + tr ( "Alias/Name" ) + "</h4>" + strReceivedName;
|
||||
strToolTip += "<h4>" + tr ( "Alias/Name" ) + "</h4>" + cChanInfo.strName;
|
||||
}
|
||||
|
||||
// instrument
|
||||
|
|
|
@ -49,7 +49,8 @@ class CChannelFader : public QObject
|
|||
public:
|
||||
CChannelFader ( QWidget* pNW );
|
||||
|
||||
QString GetReceivedName() { return strReceivedName; }
|
||||
QString GetReceivedName() { return cReceivedChanInfo.strName; }
|
||||
int GetReceivedInstrument() { return cReceivedChanInfo.iInstrument; }
|
||||
void SetChannelInfos ( const CChannelInfo& cChanInfo );
|
||||
void Show() { pFrame->show(); }
|
||||
void Hide() { pFrame->hide(); }
|
||||
|
@ -101,7 +102,7 @@ protected:
|
|||
QLabel* plblInstrument;
|
||||
QLabel* plblCountryFlag;
|
||||
|
||||
QString strReceivedName;
|
||||
CChannelInfo cReceivedChanInfo;
|
||||
|
||||
bool bOtherChannelIsSolo;
|
||||
bool bIsMyOwnFader;
|
||||
|
|
Loading…
Reference in a new issue