comparison widgets/PropertyBox.cpp @ 1370:47f35694d603 waverevision

Initialise level and pan from current state of layer's parameters (e.g. when reloading session)
author Chris Cannam
date Thu, 01 Nov 2018 15:11:39 +0000
parents 13e17e61f898
children
comparison
equal deleted inserted replaced
1369:a476c2a015e8 1370:47f35694d603
179 this, SLOT(playAudibleChanged(bool))); 179 this, SLOT(playAudibleChanged(bool)));
180 180
181 LevelPanToolButton *levelPan = new LevelPanToolButton; 181 LevelPanToolButton *levelPan = new LevelPanToolButton;
182 levelPan->setFixedSize(buttonSize); 182 levelPan->setFixedSize(buttonSize);
183 levelPan->setImageSize((buttonSize.height() * 3) / 4); 183 levelPan->setImageSize((buttonSize.height() * 3) / 4);
184 levelPan->setLevel(params->getPlayGain());
185 levelPan->setPan(params->getPlayPan());
184 layout->addWidget(levelPan, 0, col++, Qt::AlignCenter); 186 layout->addWidget(levelPan, 0, col++, Qt::AlignCenter);
185 connect(levelPan, SIGNAL(levelChanged(float)), 187 connect(levelPan, SIGNAL(levelChanged(float)),
186 this, SLOT(playGainControlChanged(float))); 188 this, SLOT(playGainControlChanged(float)));
187 connect(levelPan, SIGNAL(panChanged(float)), 189 connect(levelPan, SIGNAL(panChanged(float)),
188 this, SLOT(playPanControlChanged(float))); 190 this, SLOT(playPanControlChanged(float)));