Mercurial > hg > easaier-soundaccess
comparison widgets/PropertyBox.cpp @ 232:70b88fbbfb5c
integrate simple equalizer filter
author | lbajardsilogic |
---|---|
date | Thu, 06 Mar 2008 14:56:40 +0000 |
parents | 7d5d51145b81 |
children | 628531da16ef |
comparison
equal
deleted
inserted
replaced
231:fd17abdbef2d | 232:70b88fbbfb5c |
---|---|
432 this, SLOT(propertyControllerChanged(int))); | 432 this, SLOT(propertyControllerChanged(int))); |
433 connect(slider, SIGNAL(mouseEntered()), this, SLOT(mouseEnteredWidget())); | 433 connect(slider, SIGNAL(mouseEntered()), this, SLOT(mouseEnteredWidget())); |
434 connect(slider, SIGNAL(mouseLeft()), this, SLOT(mouseLeftWidget())); | 434 connect(slider, SIGNAL(mouseLeft()), this, SLOT(mouseLeftWidget())); |
435 | 435 |
436 if (inGroup) { | 436 if (inGroup) { |
437 slider->setOrientation(Qt::Vertical); | |
437 slider->setFixedWidth(48); | 438 slider->setFixedWidth(48); |
438 slider->setFixedHeight(24); | 439 slider->setFixedHeight(100); |
439 m_groupLayouts[groupName]->addWidget(slider); | 440 m_groupLayouts[groupName]->addWidget(slider); |
441 | |
440 } else { | 442 } else { |
441 slider->setFixedWidth(100); | 443 slider->setFixedWidth(100); |
442 slider->setFixedHeight(32); | 444 slider->setFixedHeight(32); |
443 m_layout->addWidget(slider, row, 1); | 445 m_layout->addWidget(slider, row, 1); |
444 QLabel *label = new QLabel(m_mainWidget); | |
445 connect(slider, SIGNAL(valueChanged(int)), | |
446 label, SLOT(setNum(int))); | |
447 label->setNum(value); | |
448 m_layout->addWidget(label, row, 2); | |
449 } | 446 } |
450 | 447 |
451 m_propertyControllers[name] = slider; | 448 m_propertyControllers[name] = slider; |
452 } | 449 } |
453 | 450 |
572 } | 569 } |
573 cb->blockSignals(false); | 570 cb->blockSignals(false); |
574 }*/ | 571 }*/ |
575 | 572 |
576 if (!have) { | 573 if (!have) { |
577 connect(cb, SIGNAL(curveChanged(QVector<int>&)), this, SLOT(propertyControllerChanged(QVector<int>&))); | 574 connect(cb, SIGNAL(filterChanged(QVector<int>&)), this, SLOT(propertyControllerChanged(QVector<int>&))); |
578 connect(m_container, SIGNAL(signalChanged(float*)), cb, SLOT(setCurve(float*))); | 575 connect(m_container, SIGNAL(signalChanged(float*)), cb, SLOT(setCurve(float*))); |
576 connect(m_container, SIGNAL(filterChanged(float*)), cb, SLOT(setFilter(float*))); | |
579 connect(cb, SIGNAL(mouseEntered()), this, SLOT(mouseEnteredWidget())); | 577 connect(cb, SIGNAL(mouseEntered()), this, SLOT(mouseEnteredWidget())); |
580 connect(cb, SIGNAL(mouseLeft()), this, SLOT(mouseLeftWidget())); | 578 connect(cb, SIGNAL(mouseLeft()), this, SLOT(mouseLeftWidget())); |
581 | 579 |
582 if (inGroup) { | 580 if (inGroup) { |
583 cb->setToolTip(propertyLabel); | 581 cb->setToolTip(propertyLabel); |