From ba5b285a73133369aa20abd8329f99b4a74d5cac Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Mon, 21 Mar 2011 08:13:44 +0000 Subject: [PATCH] fix for QT issue, resolved compiler warning --- src/audiomixerboard.cpp | 2 +- src/llconclientdlg.cpp | 19 +++++++++++++++++-- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/src/audiomixerboard.cpp b/src/audiomixerboard.cpp index 8219509a..49ca1a2d 100755 --- a/src/audiomixerboard.cpp +++ b/src/audiomixerboard.cpp @@ -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 diff --git a/src/llconclientdlg.cpp b/src/llconclientdlg.cpp index 2e081f05..ccfb442a 100755 --- a/src/llconclientdlg.cpp +++ b/src/llconclientdlg.cpp @@ -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); }" ); - break; + +// 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 ( "" ); + backgroundFrame->setStyleSheet ( "" ); + +// Workaround QT-Windows problem: See above description +RadioButtonRevSelL->setStyleSheet ( "" ); +RadioButtonRevSelR->setStyleSheet ( "" ); + break; }