Mercurial > hg > svgui
changeset 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 | a476c2a015e8 |
children | |
files | widgets/PropertyBox.cpp |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
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)));