From: werner s. <wsc...@us...> - 2005-11-28 22:32:42
|
Update of /cvsroot/lmuse/muse/muse/mixer In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3273/muse/mixer Modified Files: strip.cpp Log Message: align label in mixer strip Index: strip.cpp =================================================================== RCS file: /cvsroot/lmuse/muse/muse/mixer/strip.cpp,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 *** strip.cpp 28 Nov 2005 18:39:27 -0000 1.36 --- strip.cpp 28 Nov 2005 22:32:30 -0000 1.37 *************** *** 30,40 **** { QPalette p = label->palette(); - // - // why does this not work? - // p.setColor(label->backgroundRole(), track->ccolor()); label->setPalette(p); ! // qt4.1.0 specific? label->setAutoFillBackground(true); --- 30,37 ---- { QPalette p = label->palette(); p.setColor(label->backgroundRole(), track->ccolor()); label->setPalette(p); ! // qt4.1.0 specific label->setAutoFillBackground(true); *************** *** 71,79 **** label = new QLabel; label->setFixedSize(STRIP_WIDTH-1, LABEL_HEIGHT); ! // label->setTextFormat(Qt::PlainText); ! label->setAlignment(Qt::AlignJustify); ! // label->setLineWidth(0); ! // label->setMidLineWidth(0); ! // label->setFrameStyle(QFrame::NoFrame | QFrame::Plain); updateLabel(); layout->addWidget(label); --- 68,74 ---- label = new QLabel; label->setFixedSize(STRIP_WIDTH-1, LABEL_HEIGHT); ! label->setTextFormat(Qt::PlainText); ! label->setAlignment(Qt::AlignHCenter | Qt::AlignVCenter); ! label->setLineWidth(0); updateLabel(); layout->addWidget(label); |