fix for QT issue, resolved compiler warning

This commit is contained in:
Volker Fischer 2011-03-21 08:13:44 +00:00
parent cd1582cd83
commit ba5b285a73
2 changed files with 18 additions and 3 deletions

View file

@ -279,7 +279,7 @@ double CChannelFader::CalcFaderGain ( const int value )
/******************************************************************************\
* CAudioMixerBoard *
\******************************************************************************/
CAudioMixerBoard::CAudioMixerBoard ( QWidget* parent, Qt::WindowFlags f ) :
CAudioMixerBoard::CAudioMixerBoard ( QWidget* parent, Qt::WindowFlags ) :
QGroupBox ( parent )
{
// set title text and title properties

View file

@ -828,11 +828,26 @@ void CLlconClientDlg::SetGUIDesign ( const EGUIDesign eNewDesign )
"QRadioButton { color: rgb(148, 148, 148);"
" font: bold; }"
"QGroupBox::title { color: rgb(148, 148, 148); }" );
// Workaround QT-Windows problem: This should not be necessary since in the
// background frame the style sheet for QRadioButton was already set. But it
// seems that it is only applied if the style was set to default and then back
// to GD_ORIGINAL. This seems to be a QT related issue...
RadioButtonRevSelL->setStyleSheet ( "color: rgb(148, 148, 148);"
"font: bold;" );
RadioButtonRevSelR->setStyleSheet ( "color: rgb(148, 148, 148);"
"font: bold;" );
break;
default:
// reset style sheet and set original paramters
backgroundFrame->setStyleSheet ( "" );
// Workaround QT-Windows problem: See above description
RadioButtonRevSelL->setStyleSheet ( "" );
RadioButtonRevSelR->setStyleSheet ( "" );
break;
}