diff widgets/PropertyBox.cpp @ 232:70b88fbbfb5c

integrate simple equalizer filter
author lbajardsilogic
date Thu, 06 Mar 2008 14:56:40 +0000
parents 7d5d51145b81
children 628531da16ef
line wrap: on
line diff
--- a/widgets/PropertyBox.cpp	Thu Mar 06 14:50:00 2008 +0000
+++ b/widgets/PropertyBox.cpp	Thu Mar 06 14:56:40 2008 +0000
@@ -434,18 +434,15 @@
 			connect(slider, SIGNAL(mouseLeft()), this, SLOT(mouseLeftWidget()));
 
 			if (inGroup) {
+				slider->setOrientation(Qt::Vertical);
 				slider->setFixedWidth(48);
-				slider->setFixedHeight(24);
+				slider->setFixedHeight(100);
 				m_groupLayouts[groupName]->addWidget(slider);
+
 			} else {
 				slider->setFixedWidth(100);
 				slider->setFixedHeight(32);
 				m_layout->addWidget(slider, row, 1);
-				QLabel *label = new QLabel(m_mainWidget);
-				connect(slider, SIGNAL(valueChanged(int)),
-						label, SLOT(setNum(int)));
-				label->setNum(value);
-				m_layout->addWidget(label, row, 2);
 			}
 
 			m_propertyControllers[name] = slider;
@@ -574,8 +571,9 @@
         }*/
 
         if (!have) {
-			connect(cb, SIGNAL(curveChanged(QVector<int>&)), this, SLOT(propertyControllerChanged(QVector<int>&)));
+			connect(cb, SIGNAL(filterChanged(QVector<int>&)), this, SLOT(propertyControllerChanged(QVector<int>&)));
             connect(m_container, SIGNAL(signalChanged(float*)), cb, SLOT(setCurve(float*)));
+			connect(m_container, SIGNAL(filterChanged(float*)), cb, SLOT(setFilter(float*)));
 			connect(cb, SIGNAL(mouseEntered()), this, SLOT(mouseEnteredWidget()));
             connect(cb, SIGNAL(mouseLeft()), this, SLOT(mouseLeftWidget()));