From: werner s. <wsc...@us...> - 2005-10-28 12:24:07
|
Update of /cvsroot/lmuse/muse/muse/mixer In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9048/mixer Modified Files: strip.cpp Log Message: cleanups & port of gensetbase.ui3 to gensetbase.ui Index: strip.cpp =================================================================== RCS file: /cvsroot/lmuse/muse/muse/mixer/strip.cpp,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** strip.cpp 27 Oct 2005 17:27:19 -0000 1.25 --- strip.cpp 28 Oct 2005 12:23:57 -0000 1.26 *************** *** 13,16 **** --- 13,17 ---- #include "widgets/simplebutton.h" #include "widgets/utils.h" + #include "QtGui/qpalette.h" //--------------------------------------------------------- *************** *** 30,34 **** { label->setFont(*config.fonts[1]); ! label->setPalette(track->ccolor()); label->setText(track->name()); QToolTip::add(label, track->name()); --- 31,44 ---- { label->setFont(*config.fonts[1]); ! ! // does not work in current QT4 snapshot: ! static QPalette palette(label->palette()); ! ! QPalette::ColorRole cr = QPalette::Window; // (QPalette::ColorRole)i; ! palette.setColor(QPalette::Active, cr, track->ccolor()); ! palette.setColor(QPalette::Disabled, cr, track->ccolor()); ! palette.setColor(QPalette::Inactive, cr, track->ccolor()); ! label->setPalette(palette); ! label->setText(track->name()); QToolTip::add(label, track->name()); |