Mercurial > hg > easaier-soundaccess
diff widgets/PropertyBox.cpp @ 277:960531792d88
Equalizer property box is a bit modify
author | benoitrigolleau |
---|---|
date | Thu, 16 Oct 2008 09:13:21 +0000 |
parents | a9af42a93073 |
children |
line wrap: on
line diff
--- a/widgets/PropertyBox.cpp Wed Oct 15 16:18:18 2008 +0000 +++ b/widgets/PropertyBox.cpp Thu Oct 16 09:13:21 2008 +0000 @@ -443,9 +443,28 @@ slider->setOrientation(Qt::Vertical); slider->setFixedWidth(48); slider->setFixedHeight(100); - m_groupLayouts[groupName]->addWidget(slider); + + //HotFIX for the equalizer + + if(groupName==" "){ + slider->setShowToolTip(false); + slider->useLabel(false); + QWidget *widaux = new QWidget; + QGridLayout *equalizerLayout = new QGridLayout(); + equalizerLayout->setMargin(1); + equalizerLayout->setSpacing(0); + + widaux->setLayout(equalizerLayout); + equalizerLayout->addWidget(new QLabel("+6db"),0,0,Qt::AlignBottom); + equalizerLayout->addWidget(new QLabel("-inf"),2,0,Qt::AlignTop); + equalizerLayout->addWidget(slider,1,0,1,1,Qt::AlignLeft); + + m_groupLayouts[groupName]->addWidget(widaux); + }else{ + m_groupLayouts[groupName]->addWidget(slider); + } connect(m_container, SIGNAL(enableDrawCurve(bool)), slider, SLOT(setDisabled(bool))); - + //</HoTFIX> } else { slider->setFixedWidth(100); slider->setFixedHeight(32);