[Jahshaka-cvs] jah/jahwidgets/src/qt3/themes v3theme.cpp,1.8,1.9
Status: Beta
Brought to you by:
jahshaka
From: John B. <ok_...@us...> - 2007-01-11 12:08:36
|
Update of /cvsroot/jahshaka/jah/jahwidgets/src/qt3/themes In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv21087/jahwidgets/src/qt3/themes Modified Files: v3theme.cpp Log Message: Fixing font palette colours on Mac with v3theme. Index: v3theme.cpp =================================================================== RCS file: /cvsroot/jahshaka/jah/jahwidgets/src/qt3/themes/v3theme.cpp,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- v3theme.cpp 4 Jan 2007 13:57:34 -0000 1.8 +++ v3theme.cpp 11 Jan 2007 12:08:31 -0000 1.9 @@ -255,6 +255,13 @@ void V3Style::polish( QWidget* w ) { QCommonStyle::polish( w ); + +#if defined( Q_OS_MACX ) + // Force the correct palette, else we lose style information + if ( !w->inherits( "QScrollBar" ) && !w->paletteBackgroundPixmap() ) { + w->setPalette( QApplication::palette() ); + } +#endif } void V3Style::unPolish( QApplication *app ) |