Mercurial > hg > svgui
diff 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 |
line wrap: on
line diff
--- a/widgets/PropertyBox.cpp Thu Nov 01 15:11:21 2018 +0000 +++ b/widgets/PropertyBox.cpp Thu Nov 01 15:11:39 2018 +0000 @@ -181,6 +181,8 @@ LevelPanToolButton *levelPan = new LevelPanToolButton; levelPan->setFixedSize(buttonSize); levelPan->setImageSize((buttonSize.height() * 3) / 4); + levelPan->setLevel(params->getPlayGain()); + levelPan->setPan(params->getPlayPan()); layout->addWidget(levelPan, 0, col++, Qt::AlignCenter); connect(levelPan, SIGNAL(levelChanged(float)), this, SLOT(playGainControlChanged(float)));