Mercurial > hg > svgui
diff widgets/PropertyBox.cpp @ 1480:232262e38051 by-id
Update for changes to PlayParameters
author | Chris Cannam |
---|---|
date | Thu, 04 Jul 2019 18:04:44 +0100 |
parents | c8a6fd3f9dff |
children | 76b388d4d19c |
line wrap: on
line diff
--- a/widgets/PropertyBox.cpp Wed Jul 03 14:20:42 2019 +0100 +++ b/widgets/PropertyBox.cpp Thu Jul 04 18:04:44 2019 +0100 @@ -142,7 +142,7 @@ this, SLOT(populateViewPlayFrame())); } - PlayParameters *params = m_container->getPlayParameters(); + auto params = m_container->getPlayParameters(); if (!params && !layer) return; m_viewPlayFrame = new QFrame; @@ -175,7 +175,7 @@ this, SLOT(mouseEnteredWidget())); connect(m_playButton, SIGNAL(mouseLeft()), this, SLOT(mouseLeftWidget())); - connect(params, SIGNAL(playAudibleChanged(bool)), + connect(params.get(), SIGNAL(playAudibleChanged(bool)), this, SLOT(playAudibleChanged(bool))); LevelPanToolButton *levelPan = new LevelPanToolButton; @@ -186,9 +186,9 @@ this, SLOT(playGainControlChanged(float))); connect(levelPan, SIGNAL(panChanged(float)), this, SLOT(playPanControlChanged(float))); - connect(params, SIGNAL(playGainChanged(float)), + connect(params.get(), SIGNAL(playGainChanged(float)), levelPan, SLOT(setLevel(float))); - connect(params, SIGNAL(playPanChanged(float)), + connect(params.get(), SIGNAL(playPanChanged(float)), levelPan, SLOT(setPan(float))); connect(levelPan, SIGNAL(mouseEntered()), this, SLOT(mouseEnteredWidget())); @@ -674,7 +674,7 @@ void PropertyBox::playAudibleButtonChanged(bool audible) { - PlayParameters *params = m_container->getPlayParameters(); + auto params = m_container->getPlayParameters(); if (!params) return; if (params->isPlayAudible() != audible) { @@ -690,7 +690,7 @@ { QObject *obj = sender(); - PlayParameters *params = m_container->getPlayParameters(); + auto params = m_container->getPlayParameters(); if (!params) return; if (params->getPlayGain() != gain) { @@ -708,7 +708,7 @@ { QObject *obj = sender(); - PlayParameters *params = m_container->getPlayParameters(); + auto params = m_container->getPlayParameters(); if (!params) return; if (params->getPlayPan() != pan) { @@ -724,7 +724,7 @@ void PropertyBox::editPlayParameters() { - PlayParameters *params = m_container->getPlayParameters(); + auto params = m_container->getPlayParameters(); if (!params) return; QString clip = params->getPlayClipId(); @@ -774,7 +774,7 @@ void PropertyBox::playClipChanged(QString id) { - PlayParameters *params = m_container->getPlayParameters(); + auto params = m_container->getPlayParameters(); if (!params) return; params->setPlayClipId(id); @@ -823,7 +823,7 @@ } else if (wname == "playParamButton") { - PlayParameters *params = m_container->getPlayParameters(); + auto params = m_container->getPlayParameters(); if (params) { help = tr("Change sound used for playback (currently \"%1\")") .arg(params->getPlayClipId());